fflewddur / tophat

View CPU, memory, disk, and network activity in the GNOME top bar.
https://extensions.gnome.org/extension/5219/tophat/
GNU General Public License v3.0
349 stars 26 forks source link

Set the network monitor min width to 5em. #19

Closed F-i-f closed 1 year ago

F-i-f commented 2 years ago

This prevents the other indicators from moving left and right as the number of digits shown in the network indicator changes.

fflewddur commented 2 years ago

Thanks for the contribution, @F-i-f! I just added some logic to limit the network speed from growing too long, and it looks like 4em is enough to prevent the number from bouncing around now. 5em seems to put a bit too much space between the icon and the value, so that's not clear they're related. Could you confirm if 4em works better for you now, and if so, update the PR?

octopushugger commented 2 years ago

Still resizes slightly for me sometimes when using 4em but, like you, I don't like the icon too far from the numbers. I personally set mine to 4em with text-align: center.

fflewddur commented 1 year ago

Closing, as this should be resolved by the recent UI scaling fixes.