Browse Source

Tweak ellipsizing of Browser choice buttons.

tags/v2.6.1
Andrew Belt 4 months ago
parent
commit
2ba3377afe
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      src/app/Browser.cpp

+ 3
- 2
src/app/Browser.cpp View File

@@ -438,6 +438,7 @@ struct SortButton : ui::ChoiceButton {
void step() override { void step() override {
text = string::translate("Browser.sort"); text = string::translate("Browser.sort");
text += getSortNames()[settings::browserSort]; text += getSortNames()[settings::browserSort];
text = string::ellipsize(text, 23);
ChoiceButton::step(); ChoiceButton::step();
} }
}; };
@@ -930,7 +931,7 @@ inline void BrandButton::step() {
text += ": "; text += ": ";
text += browser->brand; text += browser->brand;
} }
text = string::ellipsize(text, 20);
text = string::ellipsize(text, 23);
ChoiceButton::step(); ChoiceButton::step();
} }


@@ -1016,7 +1017,7 @@ inline void TagButton::step() {
firstTag = false; firstTag = false;
} }
} }
text = string::ellipsize(text, 21);
text = string::ellipsize(text, 23);
ChoiceButton::step(); ChoiceButton::step();
} }




Loading…
Cancel
Save