Keep the Decorative Text ribbon button two lines wide

The one-line label widened the Insert tab enough to scroll the Equation button
out of view at 1400 px, which broke the equation editor tests in CI.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
vangel76andClaude Sonnet 5.5 committed 2026-11-10 23:20:06 +01:00
1 parent 40c1afbe84
commit 60063b85cd
1 file changed
+3 -1
+3 -1
View File
@@ -208,7 +208,9 @@ pub(super) fn insert(app: &mut SheetApp, ui: &mut Ui) {
if __k.clicked() {
act(app, "insert.textBox", json!({}));
}
let wa = big_button(ui, Icon::WordArt, "Decorative Text", "Decorative Text", true);
// Two lines like its neighbours, so the Insert tab stays as wide as before; the translated label is split, the catalog key is one line.
let label = app.ui.language.tr("Decorative Text").replacen(' ', "\n", 1);
let wa = big_button(ui, Icon::WordArt, &label, "Decorative Text", true);
anchor_keytip(app, ui, &wa, &["insert.wordArt"]);
// Menu invocation shows the style gallery; the command itself never opens a dialog.
egui::Popup::menu(&wa).show(|ui| crate::wordart::gallery(app, ui));