cosmic-settings icon indicating copy to clipboard operation
cosmic-settings copied to clipboard

[BUG] Text overflows in the display settings screen

Open BrodieRobertson opened this issue 1 year ago • 2 comments

The monitor names overflow there boxes, the text should with be truncated, or support having multiple rows of text.

Image

BrodieRobertson avatar Mar 01 '25 11:03 BrodieRobertson

Also happens in System & Accounts > About

Image

M00NJ avatar Mar 10 '25 22:03 M00NJ

This bug is still present within the latest beta

BrodieRobertson avatar Sep 27 '25 00:09 BrodieRobertson

I debugged this and it looks to me like this is a bug in the underlying iced framework when using Alignment::Center for a SegmentedButton, which is used in the display tabs in the "Displays" page and the "Wallpaper" page. Changing it to Alignment::Start could be used as a workaround for this issue, but aligns the text to the left, which looks kind of ugly to me.

I am completely new to Cosmic DE, libcosmic and iced. Can some Cosmic DE developer confirm that I am on the right path? If so, I might put in the effort to get a patch implemented and upstreamed for iced.

Alignment::Center:

https://github.com/user-attachments/assets/dad568b2-e728-4c43-9c24-3b0c2524b4a3

Alignment::Start:

https://github.com/user-attachments/assets/143ceb93-78b2-4872-a511-8a94cf94d143

FreddyFunk avatar Nov 05 '25 22:11 FreddyFunk