Bug 477843

Summary: Some headings may extend beyond their boundaries
Product: [Applications] systemsettings Reporter: Жора Змейкин <katze_942>
Component: generalAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED FIXED    
Severity: minor CC: nate
Priority: NOR Keywords: qt6
Version First Reported In: 5.90.0   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Demonstration

Description Жора Змейкин 2023-12-01 15:49:30 UTC
Created attachment 163706 [details]
Demonstration

I noticed that in the Russian localization some parameter headers can go out of bounds.

STEPS TO REPRODUCE
1. Run in terminal: "LANG=ru_RU.UTF-8 systemsettings" (you may need to generate Russian locales)
2. Scroll down a bit and you'll see the text hitting the scroll bar.

OBSERVED RESULT
Text overlaps the scroll bar

EXPECTED RESULT
The text should have either been moved to a new line, or you need to increase the width of the left column to make the text fit normally.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: KDE Neon Unstable, Wayland.
KDE Plasma Version: 5.90.0
KDE Frameworks Version: 5.246.0
Qt Version: 6.6.0

ADDITIONAL INFORMATION
Attached a screenshot where you can see everything
Comment 1 Nate Graham 2023-12-01 18:55:46 UTC
Oh dear!
Comment 2 Bug Janitor Service 2023-12-01 18:56:58 UTC
A possibly relevant merge request was started @ https://invent.kde.org/frameworks/kirigami/-/merge_requests/1402
Comment 3 Nate Graham 2023-12-04 15:13:02 UTC
Git commit 37acc54b270fd2942a6e939e08f64df418e44a8b by Nate Graham.
Committed on 04/12/2023 at 16:07.
Pushed by ngraham into branch 'master'.

Don't let ListSectionHeader text overflow

The intention of this code was to impose a maximum width on the label
(via Layout.fillWidth: true) when it would overflow and the separator
isn't visible, but it didn't work. Let's fix it.

M  +1    -1    src/controls/ListSectionHeader.qml

https://invent.kde.org/frameworks/kirigami/-/commit/37acc54b270fd2942a6e939e08f64df418e44a8b