mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-23 10:07:19 +00:00
DynaView: Only apply minimum height to tiddlers that are not yet visible
This commit is contained in:
parent
121e868ca4
commit
d2682b71ff
@ -2,12 +2,14 @@ title: $:/plugins/tiddlywiki/dynaview/macros
|
||||
tags: $:/tags/Macro
|
||||
|
||||
\define transclude-when-visible(tiddler,mode:"block",state,minHeight:"1em",loadingText:"…")
|
||||
<div class="tc-dynaview-set-tiddler-when-visible tc-dynaview-expand-viewport" style="min-height: $minHeight$;" data-dynaview-set-tiddler=<<__state__>> data-dynaview-set-value="visible">
|
||||
<$reveal state=<<__state__>> type="match" text="visible" tag="div">
|
||||
<div class="tc-dynaview-set-tiddler-when-visible" data-dynaview-set-tiddler=<<__state__>> data-dynaview-set-value="visible">
|
||||
<$transclude tiddler=<<__tiddler__>> mode=<<__block__>>/>
|
||||
</div>
|
||||
</$reveal>
|
||||
<$reveal state=<<__state__>> type="nomatch" text="visible" tag="div">
|
||||
<div class="tc-dynaview-set-tiddler-when-visible" style="min-height: $minHeight$;" data-dynaview-set-tiddler=<<__state__>> data-dynaview-set-value="visible">
|
||||
$loadingText$
|
||||
</$reveal>
|
||||
</div>
|
||||
</$reveal>
|
||||
\end
|
||||
|
Loading…
Reference in New Issue
Block a user