mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-12-28 02:50:27 +00:00
Fix alignment in tiddler subtitle (#8659)
This commit is contained in:
parent
e591dfd590
commit
f4f1ae6b9b
@ -4,7 +4,7 @@ title: $:/core/ui/ViewTemplate/subtitle/default
|
||||
<$reveal type="nomatch" stateTitle=<<folded-state>> text="hide" tag="div" retain="yes" animate="yes">
|
||||
<div class="tc-subtitle tc-clearfix">
|
||||
<$list filter="[all[shadows+tiddlers]tag[$:/tags/ViewTemplate/Subtitle]!has[draft.of]]" variable="subtitleTiddler">
|
||||
<$transclude tiddler=<<subtitleTiddler>> mode="inline"/><$list-join> </$list-join>
|
||||
<$transclude tiddler=<<subtitleTiddler>> mode="inline"/>
|
||||
</$list>
|
||||
</div>
|
||||
</$reveal>
|
||||
|
@ -1,4 +1,4 @@
|
||||
title: $:/core/ui/ViewTemplate/subtitle/modifier
|
||||
tags: $:/tags/ViewTemplate/Subtitle
|
||||
|
||||
<$link to={{!!modifier}}/>
|
||||
<%if [{!!modifier}!is[blank]] %><$link to={{!!modifier}}/><%endif%>
|
@ -0,0 +1,23 @@
|
||||
title: Subtitle/modified
|
||||
description: Tiddler ViewTemplate Subtitle modified only
|
||||
type: text/vnd.tiddlywiki-multiple
|
||||
import: [all[shadows+tiddlers]tag[$:/tags/ViewTemplate/Subtitle]!has[draft.of]] $:/core/ui/ViewTemplate/subtitle/default
|
||||
tags: $:/tags/wiki-test-spec
|
||||
|
||||
title: $:/language/Tiddler/DateFormat
|
||||
|
||||
[UTC]DDth MMM YYYY at hh12:0mmam
|
||||
+
|
||||
title: Output
|
||||
|
||||
\whitespace trim
|
||||
{{test||$:/core/ui/ViewTemplate/subtitle/default}}
|
||||
+
|
||||
title: test
|
||||
modified: 20241003111606000
|
||||
|
||||
text
|
||||
+
|
||||
title: ExpectedResult
|
||||
|
||||
<p><div class=" tc-reveal"><div class="tc-subtitle tc-clearfix">3rd October 2024 at 11:16am</div></div></p>
|
@ -0,0 +1,24 @@
|
||||
title: Subtitle/modifier-modified
|
||||
description: Tiddler ViewTemplate Subtitle. Show modifier and modified in UTC format
|
||||
type: text/vnd.tiddlywiki-multiple
|
||||
import: [all[shadows+tiddlers]tag[$:/tags/ViewTemplate/Subtitle]!has[draft.of]] $:/core/ui/ViewTemplate/subtitle/default
|
||||
tags: $:/tags/wiki-test-spec
|
||||
|
||||
title: $:/language/Tiddler/DateFormat
|
||||
|
||||
[UTC]DDth MMM YYYY at hh12:0mmam
|
||||
+
|
||||
title: Output
|
||||
|
||||
\whitespace trim
|
||||
{{test||$:/core/ui/ViewTemplate/subtitle/default}}
|
||||
+
|
||||
title: test
|
||||
modifier: test-user
|
||||
modified: 20241003111606000
|
||||
|
||||
text
|
||||
+
|
||||
title: ExpectedResult
|
||||
|
||||
<p><div class=" tc-reveal"><div class="tc-subtitle tc-clearfix"><a class="tc-tiddlylink tc-tiddlylink-missing" href="#test-user">test-user</a>3rd October 2024 at 11:16am</div></div></p>
|
Loading…
Reference in New Issue
Block a user