mirror of
https://github.com/storytold/gridcraft.git
synced 2026-11-15 14:52:26 +00:00
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:
1 parent
40c1afbe84
commit
60063b85cd
1 file changed
+3
-1
@@ -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));
|
||||
|
||||
Reference in new issue
Block a user