1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-23 18:17:20 +00:00

Text-slicer updates

This commit is contained in:
Jermolene 2015-09-13 09:37:57 +01:00
parent e62778a50f
commit e19617a5ce
3 changed files with 5 additions and 31 deletions

View File

@ -36,7 +36,7 @@ The document preview column appears at the left side of the screen. The content
Clicking ''Show toolbar'' causes each tiddler be preceded by a toolbar showing the underlying title. It can be edited directly to rename the tiddler. References to the tiddler in the ''tags'' and ''list'' are automatically updated to reflect the change, but note that links to the tiddler will not be automatically changed.
The preview column to be visible, the following theme tweaks should be applied:
The following theme tweaks should be applied to enable the preview column:
* Set [[story left position|$:/themes/tiddlywiki/vanilla/metrics/storyleft]] to ''400px'' (or more)
* It is recommended to also set the [[sidebar layout|$:/themes/tiddlywiki/vanilla/options/sidebarlayout]] to ''fluid-fixed''.

View File

@ -17,6 +17,10 @@ tags: $:/tags/Stylesheet
font-size: 0.9em;
}
.tc-sliced-document-title {
font-size: 1.7em;
}
.tc-document-preview-column .tc-sliced-document-header {
margin-left: 24px;
}

View File

@ -14,65 +14,35 @@ $:/config/plugins/tiddlywiki/text-slicer/heading-status/$(currentTiddler)$
\define body()
<$set name="tv-heading-status-config-title" value=<<config-heading-status>>>
<$set name="tv-show-toolbar" value={{$(config-show-toolbar)$}}>
<div class="tc-sliced-document">
<div class="tc-sliced-document-header">
<div class="tc-document-tiddler-toolbar">
<$reveal type="nomatch" state=<<config-document-status>> text="open" default="closed">
<$button set=<<config-document-status>> setTo="open" class="tc-btn-invisible">
{{$:/core/images/down-arrow}}
</$button>
</$reveal>
<$reveal type="match" state=<<config-document-status>> text="open" default="closed">
<$button set=<<config-document-status>> setTo="close" class="tc-btn-invisible">
{{$:/core/images/right-arrow}}
</$button>
</$reveal>
</div>
<h1 class="tc-sliced-document-title">''Document'': <$link><$view field="title"/></$link></h1>
</div>
<$reveal type="nomatch" state=<<config-document-status>> text="open" default="closed">
{{||$:/plugins/tiddlywiki/text-slicer/ui/document/header}}
<div class='tc-sliced-document-body'>
<$set name="tv-show-toolbar" value={{$(config-show-toolbar)$}}>
<$set name="tv-exclude-filter" value={{!!toc-exclude-filter}}>
<$list filter="[list<currentTiddler>!has[draft.of]]" template="$:/plugins/tiddlywiki/text-slicer/templates/interactive/tiddler"/>
</$set>
</$set>
</div>
</$reveal>
</div>
</$set>
</$set>
\end