mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-12-12 19:58:05 +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:
@@ -5,9 +5,7 @@ tags: $:/tags/ViewTemplate
|
|||||||
$:/state/folded/$(currentTiddler)$
|
$:/state/folded/$(currentTiddler)$
|
||||||
\end
|
\end
|
||||||
|
|
||||||
<div class="tc-tiddler-body">
|
<$reveal tag="div" class="tc-tiddler-body" type="nomatch" state=<<folded-state>> text="hide" retain="yes" animate="yes">
|
||||||
|
|
||||||
<$reveal type="nomatch" state=<<folded-state>> text="hide" retain="yes" animate="yes">
|
|
||||||
|
|
||||||
<$list filter="[all[current]!has[plugin-type]!field:hide-body[yes]]">
|
<$list filter="[all[current]!has[plugin-type]!field:hide-body[yes]]">
|
||||||
|
|
||||||
@@ -20,5 +18,3 @@ $:/state/folded/$(currentTiddler)$
|
|||||||
</$list>
|
</$list>
|
||||||
|
|
||||||
</$reveal>
|
</$reveal>
|
||||||
|
|
||||||
</div>
|
|
||||||
|
|||||||
Reference in New Issue
Block a user