mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-28 01:11:23 +01:00
Panel tabs shrink to their title's first three letters and clip the label at the tab's edge, so a narrow dock column reads "Colo", "Swa", "Gra". Add PanelTabShrink, a strip's choice (TabStrip::panel_shrink) that a dock makes for its groups (DockConfig::tab_shrink). Under PanelTabShrink::Ellipsis a panel tab shrinks no further than its label's readable least (TextRun::READABLE_CHARACTERS and an ellipsis), a cut label ends in an ellipsis, and the tabs that do not fit at that width go to the strip's overflow menu. The default, FirstLetters, keeps today's behaviour. Trial: panel_tabs_shrinking_to_an_ellipsis_keep_a_readable_prefix_and_overflow_the_rest.