SUMMARY For example we get in French: Vérification de l'orthograp he Périphériqu es SOFTWARE/OS VERSIONS Linux/KDE Plasma: Mageia cauldron, release 22.06 (available in About System) KDE Plasma Version: KDE Frameworks Version: 5.96.0 Qt Version: 5.15.2
So this looks like a Kirigami issue issue as NeoChat just uses the standard Kirigami.CategorizedSettings unmodified so it is something we probably need to consider at a library level to make sure that the component produces good looking results even when the words are very long.
Created attachment 151796 [details] NeoChat setting in french
I think Kirigami could offer an option in this case that would get the widest word and get the width from that word (in this case, it would make those buttons to access a specific setting page just wide enough for the widest word to fit perfectly without word wrapping). Thank you for bringing this up! I think this could be fixed by getting the longest/widest word and getting its width. If this word's width exceeds maximumWidth (newly created property) it would word wrap it, otherwise it can just set the width of categorized settings sidebar, so the longest word fits perfectly.
MR with a fix: https://invent.kde.org/frameworks/kirigami/-/merge_requests/737
Git commit 80e885e71f991c857be673c59a846056ad13f4aa by Nate Graham, on behalf of Matej Starc. Committed on 23/09/2022 at 17:20. Pushed by ngraham into branch 'master'. CategorizedSettings: ensure space for long words and don't wrap in weird places FIXED-IN: 5.99 M +48 -14 src/controls/settingscomponents/CategorizedSettings.qml https://invent.kde.org/frameworks/kirigami/commit/80e885e71f991c857be673c59a846056ad13f4aa