netrunner icon indicating copy to clipboard operation
netrunner copied to clipboard

Request: move or resize UI components

Open AndersRask opened this issue 7 years ago • 5 comments

It would be so cool to have some elements of customization on the UI. Moving layers or at least better resizing to fit larger screens so that when you zoom, you could still see your handsize etc!

AndersRask avatar Feb 26 '19 21:02 AndersRask

This is a sweet idea, and something I am terrible at. I'd love for any help possible!

NoahTheDuke avatar Feb 26 '19 21:02 NoahTheDuke

A simple solution could be to implement so that the font scales with the zoom in css. I am by no means an expert (im a dev and architect) but I seem to remember if you use em instead of px you get better scaling? I also found this https://github.com/yonran/detect-zoom

AndersRask avatar Feb 26 '19 22:02 AndersRask

One quick-win I see is making the card in the upper-right corner more readable on high resolution screens by making it bigger and accept, that it will cover other things. It is not visible all the time after all. The chat could even go up to the top and the card be shown right next to it and bigger.

On my notebook (13", 1920×1080 px) I can zoom in one step, which just allows me to read the card. If I zoom in any further, things disappear from the screen and cover another.

tsujigiri avatar Nov 02 '19 11:11 tsujigiri

Hmmm so I think I have some ideas on this. I'll mess around with it this weekend and see what I can put together.

(I have jnet running locally)

paulllama avatar Mar 20 '21 02:03 paulllama

@AndersRask I would suggest using a REM (Root Element) scaling system, with the root being 16px, and using sizing steps of .125rem.

Reasons:

  • 16px is the default of browsers (1rem = 16px)
  • EM units are based on their parents sizing, so you'll get weird relative sizing bugs quickly compared to REM, which scale off that root.
  • .125rem steps resolve into simple integers, which means lining elements up in layouts is easier (if you move element sizing to a REM system).
  • That stops a lot of sizing bugs, and "magic numbers". (when something is say 237px for no other reason than "that's the closest")

I can possibly do a font attempt if @armerpaul isn't already doing this?

At this point in my life, the only pixel values I use if I can help it, are in border widths/radii. 😄

lallmon avatar Apr 28 '21 16:04 lallmon