mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-18 07:44:51 +00:00
010b01f205
One of the changes for introducing folded tiddlers was the extra reveal widget here, which introduces an extra DIV element, breaking some CSS rules. To fix it, we re-use the reveal widgets generated DIV as the tiddler body DIV
21 lines
431 B
Plaintext
21 lines
431 B
Plaintext
title: $:/core/ui/ViewTemplate/body
|
|
tags: $:/tags/ViewTemplate
|
|
|
|
\define folded-state()
|
|
$:/state/folded/$(currentTiddler)$
|
|
\end
|
|
|
|
<$reveal tag="div" class="tc-tiddler-body" type="nomatch" state=<<folded-state>> text="hide" retain="yes" animate="yes">
|
|
|
|
<$list filter="[all[current]!has[plugin-type]!field:hide-body[yes]]">
|
|
|
|
<$transclude>
|
|
|
|
<$transclude tiddler="$:/language/MissingTiddler/Hint"/>
|
|
|
|
</$transclude>
|
|
|
|
</$list>
|
|
|
|
</$reveal>
|