Skip to content

fix(RichTextEditor): fill the parent's height with fill or fillHeight - #614

Merged
lorant-one merged 2 commits into
previewfrom
claude/richtext-fill
Nov 25, 2026
Merged

lorant-one merged 2 commits into
previewfrom
claude/richtext-fill

Conversation

@lorant-one

@lorant-one lorant-one commented Nov 25, 2026 •

Copy link
Copy Markdown
Member

What

Pressing Link in the once-ui.com journal showcase made the editor grow without end.

The cause is that RichTextEditor takes a fixed height, not a flex share. The showcase therefore measured its tile and passed that height back to the editor, and that formed a loop:

  1. The link row opens and makes the editor taller.
  2. The taller editor grows the tile.
  3. The bigger tile hands back a taller page, and the loop starts over.

With fill or fillHeight, the editor now takes its parent's height. The writing area gets whatever the toolbar and the open link row leave, and it scrolls. Nobody has to measure anymore, and minHeight/maxHeight are ignored in this mode. Without fill or fillHeight, nothing changes.

Checks

  • A new test fails on the base and passes here. It renders with fillHeight, opens the link row, and checks that no fixed heights are set.
  • I checked it in a browser on studio's /3.0 showcase with this build:
    • The page is 363px, and 314px with the link row open.
    • The size stays stable after that.
    • Before the fix, it grew from 354px to 3114px in 3 s.
  • Typecheck and biome are clean.

Studio also has an interim fix for the showcase that works on the current release: once-ui-system/studio#375.

🤖 Generated with Claude Code

https://claude.ai/code/session_016gNJtwQuhoLQdpygLCVEyk

@lorant-one
lorant-one merged commit cc9ab43 into preview Nov 25, 2026
9 checks passed
@lorant-one lorant-one added the approved label Nov 26, 2026 — with Claude
@lorant-one lorant-one mentioned this pull request Nov 26, 2026
7 tasks done
@lorant-one
lorant-one deleted the claude/richtext-fill branch November 29, 2026 13:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants