Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide page zoom feature #30

Open
Jermolene opened this issue Jul 19, 2014 · 9 comments
Open

Provide page zoom feature #30

Jermolene opened this issue Jul 19, 2014 · 9 comments

Comments

@Jermolene
Copy link
Member

As requested here:

https://groups.google.com/d/topic/tiddlywikidev/F9Ny7Vsahrs/discussion

@zhilongjia
Copy link

a temporary solution is adding "font-size:110%;" into your tiddlywiki html page (search "body {font-size:.75em; font-family:arial,helvetica;) . That is:
"body {font-size:.75em; font-family:arial,helvetica; margin:0; padding:0; font-size:110%;}"

@pmario
Copy link
Member

pmario commented Sep 28, 2014

a temporary solution is adding "font-size:110%

I think, this could be done with the ControlPanel.

@tobibeer
Copy link

A workaround suggested by Jeremy for setting a default zoomlevel:

There is a quick and dirty hack for this. Locate the file "html/host.html" within the TiddlyDesktop executable, and then add the following to the top of the style definition around line 38:

#twFrame {
-webkit-transform: scale(1.5);
-webkit-transform-origin: 0 0;
}

@Jermolene
Copy link
Member Author

Over at #36 @braykov requests the following shortcuts:

  • CTRL with scroll
  • CTRL with +/- TiddlyDesktop should as well remember the zooming % for each wiki after closed and reopened.

@tobibeer
Copy link

There is no more hosts.html these days. Where to add the styles for #30 (comment)?

Addendum: Ok, I've created a UserStyles.tid tidder file under windows in the config folder at:

C:\Users\AppData\Local\TiddlyWiki\user-config-tiddlywiki\tiddlers

title: $:/TiddlyDesktop/UserStyles
tags: $:/tags/Stylesheet

.td-wiki-frame {
    -webkit-transform: scale(1.5);
    -webkit-transform-origin: 0 0;
}

What's the idea behind the td- prefix?

@Jermolene
Copy link
Member Author

See #72 for a possible way to implement this.

@ghost
Copy link

ghost commented Nov 10, 2020

Any process about this?

@enricllagostera
Copy link

Yes, I'd really appreciate this functionality. It helps a lot for using TiddlyDesktop in different contexts / screens without having to manually change CSS styles all the time. I would like to try to implement it but I haven't learned yet how to create plugins yet.

@mateuszwilczek
Copy link

I have created a tweak that binds keyboard shortcuts ctrl/cmd shift +/-/0 to pseudo zoom in/out/reset zoom in TiddlyDesktop. It works by changing the px sizes as defined in vanilla theme tweaks. It has its limitations, so it's not a solution to this issue, but it works well enough for me. See it at https://wilk-tweaks.tiddlyhost.com (or permalink to demo of this pseudo zoom).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants