Skip to content

Add draggable numeric controls and per-side window padding - #265

Merged
stevebauman merged 2 commits into
masterfrom
feature/draggable-input-icons
Dec 3, 2026
Merged

stevebauman merged 2 commits into
masterfrom
feature/draggable-input-icons

Conversation

@stevebauman

@stevebauman stevebauman commented Dec 3, 2026 •

Copy link
Copy Markdown
Owner

You can now drag the icon next to a numeric setting to adjust its value. For example, drag the canvas width icon to the right to make the canvas wider, or to the left to make it narrower. A single click focuses the field so you can type an exact value.

Dragging follows the same step size and limits as the input’s arrow keys, including decimal steps for settings like editor line height. Locked fields ignore the gesture.

In the inspector, border radius, opacity, scale, and window padding now use these fields in place of sliders. Opacity and scale are shown as percentages. Border radius and padding are shown in pixels.

Window padding has separate horizontal and vertical fields. Toggle individual sides to edit the top, right, bottom, or left edge independently. When opposite sides have different values, the shared field shows Mixed. Editing that field sets both sides to the same value.

Blank projects start with 24 px on each side. Existing projects keep their rendered spacing, including the smaller top inset used by older windows with a header.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Dec 3, 2026 •

Copy link
Copy Markdown

Deploying showcode with  Cloudflare Pages  Cloudflare Pages

Latest commit: 627ad13
Status: ✅  Deploy successful!
Preview URL: https://073d31f7.showcode.pages.dev
Branch Preview URL: https://feature-draggable-input-icon.showcode.pages.dev

View logs

@stevebauman stevebauman changed the title Adjust numeric inputs by dragging their icons Add draggable numeric controls and per-side window padding Dec 3, 2026
@stevebauman
stevebauman merged commit 4d3dc57 into master Dec 3, 2026
3 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.

1 participant