The following code is used to dynamically switch styles. The code imitates the full-screen style of codemirror6. It seems to work normally, but I accidentally discovered that the style does not work for system tiddlers and cannot be scrolled in full-screen state. Even if I force overflow: auto to scroll, it will not work. Does anyone know the reason?
title: $:/plugins/oeyoews/tiddler-fullscreen/styles.css
tags: $:/tags/Stylesheet
\define fullscreen-tiddler()
.tc-tiddler-frame[data-tiddler-title="$(cssEscapedTitle)$"] {
overflow: auto;
}
\end
<$list filter="[prefix[$:/state/tiddler-fullscreen/]] :filter[get[text]match[yes]] +[limit[1]]" variable="fullscreenStateTiddler">
<$let fullscreenTiddler={{{ [<fullscreenStateTiddler>removeprefix[$:/state/tiddler-fullscreen/]] }}} cssEscapedTitle={{{ [<fullscreenTiddler>] }}}>
<% if [<fullscreenTiddler>!is[missing]] %>
<<fullscreen-tiddler>>
<% endif %>
</$let>
</$list>
But if you write the style directly, it will work normally, such as the following.
.tc-tiddler-frame[data-tiddler-title="$:/ControlPanel"] {
overflow: auto;
}