Hmmm… I just tried using “zoomin” story view with TiddlyTools/Stylesheets/CenterStory, and it also had this tiddler alignment issue
The TiddlyTools CenterStory stylesheet applies the following fairly simple CSS:
.tc-tiddler-frame { min-width:600px; max-width:50vw; margin-left:auto; margin-right:auto; }
This correctly centers the tiddlers for “classic” and “pop” story views, but when using “zoomin” story view, the alignment is as you described: “stubbornly left-aligned” (or “stubbornly right-aligned” if also using TiddlyTools/Stylesheet/TopBar with the “scrollbar on left” setting enabled.)
After some digging through the TWCore’s default “Vanilla” styles ($:/themes/tiddlywiki/vanilla/base), I was able to identify the CSS rules that are applied to the .tc-tiddler-frame
layout when “zoomin” story view is selected. These rules (there are several) all refer to “.tc-page-container.tc-page-view-zoomin .tc-tiddler-frame
”
The good news is that after a little bit of experimentation, I found that overriding the TWCore’s Vanilla “zoomin” CSS by creating a new stylesheet tiddler (tagged with $:/tags/Stylesheet
) containing:
.tc-page-container.tc-page-view-zoomin .tc-tiddler-frame {
position: static; width:100% !important;
}
fixes the tiddler alignment issue when centering the story river, while still permitting the “zoomin” story view to function as expected.
I tested this CSS fix with sidebar visible/hidden and “fluid/fixed” vs “fixed/fluid” layout on both https://TiddlyTools.com and https://TiddlyWiki.com, and “zoomin” mode looks good for all of those combinations, so I think it’s a fairly safe, generalized solution perhaps suitable for a TWCore PR.
I’ve also added this fix to TiddlyTools/Stylesheets/CenterStory, so if you import that tiddler and then click the “toggle center story” (double-arrows) button in the TopLeftBar, you should be all set. Note: you can also “ctrl-click” on the double-arrows button to get a popup that lets you set the minimum/maximum widths that are applied when the story column is centered.
Let me know how it goes…
enjoy,
-e