mirror of
https://github.com/storytold/photocraft.git
synced 2026-12-03 06:31:42 +01:00
Six dialogs (Create Rectangle/Polygon, Fill and its Blending section, Stroke, Channel Options / Layer Mask Display Options / New Spot Channel, New Snapshot) and the Document Properties panel each carried a private label() that painted right-aligned text into a fixed-width column with nothing bounding it on the left, so a longer translation ran out of the dialog. They now share widgets::label_column_width (measure the dialog's labels in the current language, clamped between the old English width and a per-dialog cap that leaves room for the fields) and widgets::column_label (right-aligned, elided with a hover tooltip past the column). Fill and Stroke measure the Blending section's labels too, so both sections share one column. Same design as the Image Size / Canvas Size fix in #9636 (not merged); that PR's private sizing::label/label_col can move onto these helpers once it lands. Tests: widgets::tests::column_label_stays_inside_its_column and dialogs::label_column_tests::translated_labels_stay_inside_the_dialog (every dialog body in every registered language; no text left of the dialog). Co-Authored-By: Claude Opus 5.5 <[email protected]>