From 2ba3377afe7b65fef114bf289df0b3227ae81424 Mon Sep 17 00:00:00 2001 From: Andrew Belt Date: Mon, 23 Dec 2024 20:39:59 -0500 Subject: [PATCH] Tweak ellipsizing of Browser choice buttons. --- src/app/Browser.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/app/Browser.cpp b/src/app/Browser.cpp index 6ba71c22..42e8b1b7 100644 --- a/src/app/Browser.cpp +++ b/src/app/Browser.cpp @@ -438,6 +438,7 @@ struct SortButton : ui::ChoiceButton { void step() override { text = string::translate("Browser.sort"); text += getSortNames()[settings::browserSort]; + text = string::ellipsize(text, 23); ChoiceButton::step(); } }; @@ -930,7 +931,7 @@ inline void BrandButton::step() { text += ": "; text += browser->brand; } - text = string::ellipsize(text, 20); + text = string::ellipsize(text, 23); ChoiceButton::step(); } @@ -1016,7 +1017,7 @@ inline void TagButton::step() { firstTag = false; } } - text = string::ellipsize(text, 21); + text = string::ellipsize(text, 23); ChoiceButton::step(); }