Skip to content

hostcheck: fix sizing and height calculation for status label - #1883

Open
Heckie75 wants to merge 1 commit into
linuxmint:masterfrom
Heckie75:hostcheck-fix-sizing
Open

hostcheck: fix sizing and height calculation for status label#1883
Heckie75 wants to merge 1 commit into
linuxmint:masterfrom
Heckie75:hostcheck-fix-sizing

Conversation

@Heckie75

@Heckie75 Heckie75 commented Aug 8, 2026

Copy link
Copy Markdown

Fix hostcheck@schorschii desklet sizing by removing incorrect global.ui_scale scaling from label dimension calculations, using the label’s preferred rendered height, and making the canvas height match the actual label height; also add box-sizing: border-box to the status box stylesheet so the layout behaves consistently.

@rcalixte

rcalixte commented Aug 8, 2026

Copy link
Copy Markdown
Member

cc @schorschii

@schorschii

Copy link
Copy Markdown
Contributor

I am not convinced by the change. The desklet now has a too big padding at the bottom (not equal with top padding):
Bildschirmfoto vom 2026-08-09 17-39-38

What exactly are you trying to fix?

@Heckie75

Heckie75 commented Aug 9, 2026

Copy link
Copy Markdown
Author

@schorschii Actually the change fixes the broken design in case that scaling is configured. In my case I have a 4K screen and set the scaling to 125%. Without this fix it looks like this:
grafik

The red/green panel is too big. Also the font is far to big.

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

Successfully merging this pull request may close these issues.

3 participants