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

Tab scaling #183

Open
diomidov opened this issue Jun 5, 2021 · 1 comment
Open

Tab scaling #183

diomidov opened this issue Jun 5, 2021 · 1 comment

Comments

@diomidov
Copy link
Contributor

diomidov commented Jun 5, 2021

It would be nice if you could scale/zoom the contents of an individual tab.

The UI could be a pair of zoom buttons on the tab, or on the tabset. Unfortunately it doesn't seem to be possible to capture Ctrl++/- or Ctrl + mouse wheel events unless the iframe is on the same domain :(

All tabs with the same (sub)domain name should probably share the scale factor. For example I might want to scale all coauthor.csail.mit.edu tabs by 120%.

This CSS seems to work:

iframe {
  --scale: 1.2;
  width: calc(100% / var(--scale));
  height: calc(100% / var(--scale));
  transform: translate(-50%,-50%) scale(var(--scale)) translate(50%,50%);
}
@edemaine
Copy link
Owner

edemaine commented Dec 9, 2021

We discussed possible UIs for this. Simplest is probably +/- buttons in selected tabs.

If we want to get fancy, under Settings, we could have a list of domains with scale and their current scales, and you could modify e.g. coauthor.csail.mit.edu to *.mit.edu or coauthor.csail.mit.edu/Test to be less or more specific.

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

No branches or pull requests

2 participants