From 60063b85cd0a26c973c4f6fad5e1c1fa03405a26 Mon Sep 17 00:00:00 2001 From: vangel76 Date: Tue, 10 Nov 2026 23:20:06 +0100 Subject: [PATCH] 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 --- crates/ui-egui/src/ribbon/insert.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/ui-egui/src/ribbon/insert.rs b/crates/ui-egui/src/ribbon/insert.rs index 50be093f0..b29257c76 100644 --- a/crates/ui-egui/src/ribbon/insert.rs +++ b/crates/ui-egui/src/ribbon/insert.rs @@ -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));