Code-server: UI scaling

Created on 27 Aug 2020  路  9Comments  路  Source: cdr/code-server

there is users using this on mobile device
most of mobile browsers doesn't support scaling(in PC Ctrl+mWheel)

so it's nearly impossible to change ui size
(for firefox about:config -> layout.css.devPixelsPerPx; systemwide)

can we add some feature to scale ui size?

enhancement

Most helpful comment

On Firefox for Android at least there are options to scale according to the overall system but nothing to scale an individual website smaller.

As @sr229 mentioned the scaling in VS Code is Electron-based which is why it's missing but we could re-implement it with the CSS @djdisodo posted.

All 9 comments

most of mobile browsers doesn't support scaling

Which browsers? Any browser that doesn't has a major accessibility issue.

iOS devices at least do support scaling.

UI scaling is more of a browser side issue, you can just zoom out if needed since VS Code supports scaling by default.

@nhooyr
i didn't know about ios
@sr229
pinch to zoom works
but how can i do when i want to make it smaller

like the screenshot here
normal: https://ibb.co/dDdpHpc
smaller: https://ibb.co/3zXFgNw

the ui size option in vscode seems not working here

@nhooyr
i didn't know about ios
@sr229
pinch to zoom works
but how can i do when i want to make it smaller

like the screenshot here
normal: https://ibb.co/dDdpHpc
smaller: https://ibb.co/3zXFgNw

the ui size option in vscode seems not working here

That's bound to a Electron API call IIRC, hence why it doesn't work.

though it is browser issue, i thnk it could be processed server side

Unfortunately I don't have an android device so I can't comment further.

cc @code-asher might know.

adding this to header will just gonna work
https://pastebin.com/fkaAPk4h
90%is just example

edit: not working cause it has hard-coded width, height controled by js

On Firefox for Android at least there are options to scale according to the overall system but nothing to scale an individual website smaller.

As @sr229 mentioned the scaling in VS Code is Electron-based which is why it's missing but we could re-implement it with the CSS @djdisodo posted.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

grant picture grant  路  3Comments

justmao945 picture justmao945  路  3Comments

tecosaur picture tecosaur  路  3Comments

pchecinski picture pchecinski  路  3Comments

lshamis picture lshamis  路  3Comments