Open Tiddler in New Window button

143 views
Skip to first unread message

History Buff

unread,
Jul 1, 2021, 1:56:45 PM7/1/21
to TiddlyWiki
All,

I noticed some interesting behavior today that I don't understand. I was playing around with the open tiddler in new window button and noticed that the styling seems to be all messed up and not in a consistent way. I haven't checked all styling, but font size is definitely not the same and may be larger or smaller. Does the new window not have access to any of the styling from my custom spreadsheets?

Just curious.

Brian Radspinner

unread,
Jul 1, 2021, 4:52:55 PM7/1/21
to TiddlyWiki
Depends on what classes you used in your custom styles. If you right-click on the new window, you can see that only a few classes are used, not the usual tc.tiddler-frame, tc-tiddler-view-frame, etc...

You'll want to add to your existing styles the tc-single-tiddler-window-based or the tc-page-container-based classes to match if you have anything based on tc-tiddler-frame or similar.

Brian Radspinner

unread,
Jul 1, 2021, 4:53:55 PM7/1/21
to TiddlyWiki
I forgot to mention, you right-click on the new window and choose to inspect the window to see the classes used

TW Tones

unread,
Jul 1, 2021, 8:28:42 PM7/1/21
to TiddlyWiki
History Buff,

The first thing to realise is "open in new window", only renders the text field of the tiddler. So as to make full use of the view or edit templates in Windows I created the attached two buttons.

I have not yet published this solutions but others have found them useful.

Regards
Tones
new-windows.json

TW Tones

unread,
Jul 1, 2021, 8:35:31 PM7/1/21
to TiddlyWiki
I should have added this should fix your css issue out of the box, but may introduce other viewTemplate elements you do not want in your windows, Tell me and I can create a new button.

Tones

History Buff

unread,
Jul 2, 2021, 1:22:58 PM7/2/21
to TiddlyWiki
Thanks Brian & Tones,

I haven't tried changing any of my existing styles yet, but that's next. I did try the json file and it only changed things up. The font sizes were still not the same. Some were smaller and some were larger. I just tried it briefly and didn't investigate further because of more pressing matters. I will hopefully have a chance to play with some of these over the next few days.
Reply all
Reply to author
Forward
0 new messages