Repository navigation
Add draggable numeric controls and per-side window padding - #265
Merged
Merged
Conversation
Deploying showcode with
|
| Latest commit: |
627ad13
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://073d31f7.showcode.pages.dev |
| Branch Preview URL: | https://feature-draggable-input-icon.showcode.pages.dev |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.