From bfe1d1db1b0df4b52948a9dea54316d1d94f4a19 Mon Sep 17 00:00:00 2001 From: "Amy J. Ko" Date: Sat, 14 Nov 2026 15:01:21 -0800 Subject: [PATCH] Keep the markup toolbar from setting its editor's width A tutorial bubble sizes itself to its content, and the markup toolbar is a no-wrap row of buttons, so the toolbar's 878px of buttons stretched the bubble past its 320px column. OverflowToolbar then measured that stretched width as room to spare and settled at ~505px, so text ran on one line and the part past the column edge was cut off, along with the save status beside it. Wrapping the toolbar in `contain: inline-size` makes it take the editor's width, so it folds buttons into its menu as designed. Scoped to the markup editor: the other seven OverflowToolbar users may sit in content-sized boxes, where containment would collapse them. Co-Authored-By: Claude Opus 5.5 --- CHANGELOG.md | 1 + .../editor/markup/MarkupToolbar.svelte | 11 ++++- tests/end2end/localize-annotations.spec.ts | 40 +++++++++++++++++++ 3 files changed, 51 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f1e5273f63..0ca4b0c81d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,7 @@ These notes are publicly posted in [production](https://wordplay.dev/updates), s ### Fixed - ๐ŸŒ Localization edits now say when they're saved, stay on screen after a reload, and the Learn page shows the tutorial in Roman Urdu and Taiwanese Hokkien. (#1495) +- โœ๏ธ Editing a tutorial's text in localization mode now fits inside its speech bubble, so long text wraps instead of being cut off. - ๐Ÿค Projects shared to a gallery no longer vanish from it when a computer with an old copy of the gallery saves it. - ๐Ÿ’พ The [Projects](https://wordplay.dev/projects) page no longer shows other people's projects that were saved on the same computer. - ๐Ÿ› A project you have open no longer closes with an error when its gallery changes. diff --git a/src/components/editor/markup/MarkupToolbar.svelte b/src/components/editor/markup/MarkupToolbar.svelte index 35c66fefdc..9057cf70c9 100644 --- a/src/components/editor/markup/MarkupToolbar.svelte +++ b/src/components/editor/markup/MarkupToolbar.svelte @@ -64,9 +64,18 @@ > {/snippet} - +
+ +