1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-12-24 17:10:29 +00:00

Remove extra DIV added to view template

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
This commit is contained in:
Jermolene 2015-08-10 11:39:11 +01:00
parent 4d5c14bca7
commit 010b01f205

View File

@ -5,9 +5,7 @@ tags: $:/tags/ViewTemplate
$:/state/folded/$(currentTiddler)$
\end
<div class="tc-tiddler-body">
<$reveal type="nomatch" state=<<folded-state>> text="hide" retain="yes" animate="yes">
<$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]]">
@ -20,5 +18,3 @@ $:/state/folded/$(currentTiddler)$
</$list>
</$reveal>
</div>