Skip to content

Own width and height for a format: a choice that stays (#562) - #565

Merged
bubulux merged 1 commit into
mainfrom
fix/562-own-format
Dec 3, 2026
Merged

bubulux merged 1 commit into
mainfrom
fix/562-own-format

Conversation

@bubulux

@bubulux bubulux commented Dec 3, 2026

Copy link
Copy Markdown
Collaborator

Closes #562

What changed

  • PresetFlow.tsx: "Own width and height…" is now its own state (ownFormat) instead of being read off the numbers. Choosing it shows width × height straight away, starting from the current format's values. Choosing a named format switches back.
  • Canvas, free-form frame (CanvasEditor.tsx): the Format select gets the same "Own width and height…" entry, with two mm fields (they apply on Enter or leaving the field). Before, a custom size could only be shown there, never entered.
  • Docs: docs/features/canvas.md (create flow, free-form frame).

Decisions (owner)

  • If the typed numbers match a format in the list, it stays on Own: no jump to the named format while typing.
  • The canvas's free-form frame gets the fix too.

Checked

  • make check green.
  • Clicked through locally: preset dialog (choose Own, the fields show 24.89 × 18.66; type 23.1, still Own; type 24.89 again, still Own; choose Full frame, the fields go away). Canvas free-form frame (choose Own, type 23.1, the frame becomes "Free-form · 23.1 × 24 mm").
  • Not checked: the dialog opened from the canvas's "New optics preset…" / "Create a preset from it" (same component).

🤖 Generated with Claude Code

… dialog and on a free-form frame (#562)

The select read "own" off the numbers, which still matched the format chosen before, so it snapped back and the fields never showed. It is now state of its own: the fields show at once from the current values and stay when the numbers match a format of the list. A free-form frame on the canvas gets the same choice (it had none).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@bubulux
bubulux merged commit b8f6931 into main Dec 3, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Optics preset: “Own width and height…” for the format cannot be chosen

1 participant