mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-23 10:07:19 +00:00
Dynaview: cleaning up
It turns out that we don't need to disable any scroll anchoring done by the browser as our implementation of scroll anchoring will adapt itself. Also removing an unneeded paragraph tag from the view template.
This commit is contained in:
parent
3afb251b3a
commit
952826e0fa
@ -10,7 +10,6 @@ $:/state/folded/$(currentTiddler)$
|
||||
<$vars storyTiddler=<<currentTiddler>> tiddlerInfoState=<<qualify "$:/state/popup/tiddler-info">> userClass={{!!class}}>
|
||||
<$tiddler tiddler=<<currentTiddler>>>
|
||||
<div data-tiddler-title=<<currentTiddler>> data-tags={{!!tags}} class=<<frame-classes>>>
|
||||
|
||||
<$set name="state" value={{{ [[$:/state/viewtemplate/visibility/]addsuffix<currentTiddler>] }}}>
|
||||
<$reveal stateTitle=<<state>> type="match" text="true" tag="div">
|
||||
<div class="tc-dynaview-set-tiddler-when-visible tc-dynaview-expand-viewport" data-dynaview-set-tiddler=<<state>> data-dynaview-set-value="true" data-dynaview-unset-tiddler=<<state>> data-dynaview-unset-value="false" data-dynaview-has-triggered={{{ [<state>get[text]] }}}>
|
||||
@ -24,7 +23,6 @@ $:/state/folded/$(currentTiddler)$
|
||||
</div>
|
||||
</$reveal>
|
||||
</$set>
|
||||
|
||||
</div>
|
||||
</$tiddler>
|
||||
</$vars>
|
||||
|
@ -1,19 +1,8 @@
|
||||
title: $:/plugins/tiddlywiki/dynaview/styles
|
||||
tags: $:/tags/Stylesheet
|
||||
|
||||
\define if-tiddler-is(title,value,text)
|
||||
<$reveal stateTitle=<<__title__>> text=<<__value__>> type="match">
|
||||
<$text text=<<__text__>>/>
|
||||
</$reveal>
|
||||
\end
|
||||
\rules only filteredtranscludeinline transcludeinline macrodef macrocallinline
|
||||
|
||||
<<if-tiddler-is title:"$:/config/DynaView/PreserveScrollPosition" value:"yes" text:"""
|
||||
body {
|
||||
overflow-anchor: none; /* Turn off browser scroll anchoring */
|
||||
}
|
||||
""">>
|
||||
|
||||
body.tc-dynaview .tc-dynaview-zoom-visible-1-and-above,
|
||||
body.tc-dynaview .tc-dynaview-zoom-visible-1a-and-above,
|
||||
body.tc-dynaview .tc-dynaview-zoom-visible-1b-and-above,
|
||||
|
Loading…
Reference in New Issue
Block a user