mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-06-03 15:14:07 +00:00

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.
9 lines
605 B
Plaintext
9 lines
605 B
Plaintext
title: $:/core/ui/ViewTemplate
|
|
|
|
\define frame-classes()
|
|
tc-tiddler-frame tc-tiddler-view-frame $(missingTiddlerClass)$ $(shadowTiddlerClass)$ $(systemTiddlerClass)$ $(tiddlerTagClasses)$
|
|
\end
|
|
<$set name="storyTiddler" value=<<currentTiddler>>><$set name="tiddlerInfoState" value=<<qualify "$:/state/popup/tiddler-info">>><$tiddler tiddler=<<currentTiddler>>><$link tag="div" draggable="no" tabindex="1" class=<<frame-classes>>><$list filter="[all[shadows+tiddlers]tag[$:/tags/ViewTemplate]!has[draft.of]]" variable="listItem"><$transclude tiddler=<<listItem>>/></$list>
|
|
</$link>
|
|
</$tiddler></$set></$set>
|