Skip to content

Make the editor and preview panes resizable - #114

Merged
alixander merged 1 commit into
masterfrom
feat/resizable-playground-panes
Nov 19, 2026
Merged

alixander merged 1 commit into
masterfrom
feat/resizable-playground-panes

Conversation

@alixander

Copy link
Copy Markdown
Contributor

Human


AI

Closes #112.

Drag the divider to give the editor or preview more room. It moves vertically when the panes are stacked and remembers the split after a reload. The diagram scales as the divider moves, so resizing keeps the current preview and any uncompiled edits.

With the divider focused, arrow keys adjust the split in five-percentage-point steps. Home shows only the preview and End shows only the editor. Double-click the divider or press Enter to return to 50/50.

The production build and ./make.sh passed. Chromium browser checks covered mouse and touch dragging, keyboard controls, persistence, SVG and ASCII previews, zoom, fullscreen, and SVG export. The divider checks also passed in headless WebKit. Its D2 compiler hit the same startup error on this branch and on master, which prevented an end-to-end rendering check there.

  • sent from alixander's Codex

- sent from alixander's Codex
@vercel

vercel Bot commented Nov 19, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
d2-playground Ready Ready Preview Nov 19, 2026 1:11pm UTC

Request Review

@alixander
alixander merged commit 3957fb9 into master Nov 19, 2026
6 checks passed
@alixander
alixander deleted the feat/resizable-playground-panes branch November 19, 2026 13:17

This branch was successfully deployed

1 active deployment
Preview — 2b8f11b4 Deployed Nov 19, 2026 by vercel[bot]
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.

Allow resizing the editor and preview panes

1 participant