Bug 468485 - TabButton Component: Single-word labels can awkwardly wrap within a word
Summary: TabButton Component: Single-word labels can awkwardly wrap within a word
Status: CONFIRMED
Alias: None
Product: frameworks-kirigami
Classification: Frameworks and Libraries
Component: general (other bugs)
Version First Reported In: 5.104.0
Platform: Other Linux
: NOR minor
Target Milestone: Not decided
Assignee: kdelibs bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-04-14 00:11 UTC by Justin Zobel
Modified: 2023-04-14 14:21 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Justin Zobel 2023-04-14 00:11:58 UTC
See Screenshot

The app is Marknote, initially reported on Gitlab[1] with a screenshot.

1 https://invent.kde.org/mbruchert/marknote/-/issues/19#note_661510
Comment 1 Nate Graham 2023-04-14 14:21:25 UTC
From the image I see in https://invent.kde.org/mbruchert/marknote/-/issues/19, I'm unsure how this could be generically fixed. If there isn't enough horizontal space to display a whole word, *something* has to happen. If that something is wrapping, then the word inevitably has to be wrapped somewhere in the middle.

The component could be changed to have a larger minimum width, or to do something fancy and have a minimum width that's guaranteed to be wide enough to prevent wrapping any single-word labels within a word. As a consequence, this would reduce design flexibility for app developers because they wouldn't be able to precisely control the width of the component anymore. Or the *implicit* width could use that calculation and app developers could override it, but then the bug could just re-appear.