From 83011ddcffe5b7dbcdbdb1c029adaf790f41862b Mon Sep 17 00:00:00 2001 From: Jermolene Date: Mon, 23 Feb 2015 11:18:47 +0100 Subject: [PATCH] Turn tiddler frames into links MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit By turning the tiddler frame into a link it is now possible to click on a tiddler to navigate to it. This is needed for the new stacked-storyview, but it also useful in other storyviews. Note that there are currently some issues. For example, in classic storyview, clicking on a tiddler will scroll to the top of it, which isn’t helpful if you’ve scrolled halfway down a long tiddler. --- core/ui/ViewTemplate.tid | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/ui/ViewTemplate.tid b/core/ui/ViewTemplate.tid index 7d6bc230b..7bbc89281 100644 --- a/core/ui/ViewTemplate.tid +++ b/core/ui/ViewTemplate.tid @@ -3,6 +3,6 @@ title: $:/core/ui/ViewTemplate \define frame-classes() tc-tiddler-frame tc-tiddler-view-frame $(missingTiddlerClass)$ $(shadowTiddlerClass)$ $(systemTiddlerClass)$ $(tiddlerTagClasses)$ \end -<$set name="storyTiddler" value=<>><$set name="tiddlerInfoState" value=<>><$tiddler tiddler=<>>
>><$list filter="[all[shadows+tiddlers]tag[$:/tags/ViewTemplate]!has[draft.of]]" variable="listItem"><$transclude tiddler=<>/> -
+<$set name="storyTiddler" value=<>><$set name="tiddlerInfoState" value=<>><$tiddler tiddler=<>><$link tag="div" draggable="no" tabindex="1" class=<>><$list filter="[all[shadows+tiddlers]tag[$:/tags/ViewTemplate]!has[draft.of]]" variable="listItem"><$transclude tiddler=<>/> +