1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-11-26 19:47:20 +00:00

Fix alignment in tiddler subtitle (#8659)

This commit is contained in:
Mario Pietsch 2024-10-03 13:34:39 +02:00 committed by GitHub
parent e591dfd590
commit f4f1ae6b9b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 49 additions and 2 deletions

View File

@ -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>&nbsp;</$list-join>
<$transclude tiddler=<<subtitleTiddler>> mode="inline"/>
</$list>
</div>
</$reveal>

View File

@ -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%>

View File

@ -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>

View File

@ -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>