backrest icon indicating copy to clipboard operation
backrest copied to clipboard

Better UI auto scaling in different screen resolution

Open Nebulosa-Cat opened this issue 1 year ago • 8 comments

For comparison this is the preview in README: image

this is how the UI look in 4k 28inch monitor: 100% image 110% image 120% image

I think the UI needs to add custom sizing options, especially as modern devices have many resolutions

For example, common screen on rack 1280x960 (4:3), normal 1920x1080 (16:9), 2k, 4k, 5k (like mac studio or some LG screen for mac user), evem some 13inch laptop or 11inch iPad... etc

May need a better design of auto-scaling default font sizes to fit more devices in browser.

Nebulosa-Cat avatar Mar 20 '24 23:03 Nebulosa-Cat

Thanks for sharing the screenshots!

Brainstorming a few options to improve scaling across a few form factors

  • Looking at backrest on mobile, I already have some support for a custom layout here that hides the far right panel in favor of a popup when you click on a backup row BUT the sidebar and text is quite small. I'll see if I can expand this a bit.
  • On desktop, I think the main problem seems to be that the layout isn't resizeable. I'll aim to make the content area draggable to resize the backup pane / tree view panes.

Is font size an issue? How do you envisage scaling being configured?

garethgeorge avatar Mar 22 '24 06:03 garethgeorge

Thanks for sharing the screenshots!

Brainstorming a few options to improve scaling across a few form factors

  • Looking at backrest on mobile, I already have some support for a custom layout here that hides the far right panel in favor of a popup when you click on a backup row BUT the sidebar and text is quite small. I'll see if I can expand this a bit.
  • On desktop, I think the main problem seems to be that the layout isn't resizeable. I'll aim to make the content area draggable to resize the backup pane / tree view panes.

Is font size an issue? How do you envisage scaling being configured?

In Desktop, for example, my screen is a 28inch 4k screen, the distance to me is 60cm, the text letter wide is slightly larger than 1mm when use 100% scale, when change to 120% it will much clearer (~2mm)

in my 11inch iPad Pro, it looks like this: IMG_2166 The main problem is letter size too. But in fact, the problem is smaller than on the desktop because the screen is much closer to the eyes when using a tablet.

in my 12 mini (It’s a unusual device use case. I don’t think anyone would want to use such a small phone for service management. It’s for comparison only.): IMG_5006 If need use on phone, it maybe need single column layout i think, the "Plans", "Repo" an "Setting" maybe need fold. IMG_5008 and the detail box maybe need fill almost screen to get clear view

Nebulosa-Cat avatar Mar 22 '24 06:03 Nebulosa-Cat

I have to squint to see the small text (or zoom), especially the text at the far right:

image

Snake883 avatar Nov 10 '24 01:11 Snake883

I personally would definitely love the ability to increase the font size.

Vyerni avatar Feb 07 '25 07:02 Vyerni

I think the webui is not responsive/adaptive to mobile browsers. It looks like this on my 6.67 inch Android screen.

It's such a good project. I don't agree that using a phone for repo admin is rare. The whole idea of adding a web GUI to restic is to avoid using SSH and type long commands while I am on the go. With a GUI we can quickly check the repo without a physical keyboard. I just hope it is mobile friendly.

Image

pretubedongit avatar Mar 12 '25 01:03 pretubedongit

Some of the font sizes are unreasonably small. The grey text here is 8.4px. I would consider 12px to be the absolute minimum that anything should ever be in a web UI

Image

ascott18 avatar Mar 16 '25 00:03 ascott18