Repository navigation
feat: lift figure controls out of the frames and enlarge them - #477
Merged
Merged
Conversation
FigureFrame now takes a controls slot and renders it in its own strip below the bordered figure, so the drawing box stays a drawing. The unit circle, vector field and solid of revolution pass their controls through it and drop the in-frame copies. Steppers become 40x40, selects 40px tall and Reset a labelled 36px button. Sliders put the label on its own line and wrap the range with the stepper and suffix as one group, which fixes the clipped plus on the solid-of-revolution card and the detached degree sign on the unit circle.
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.
Section 04 put the figure controls inside the bordered drawing, at 28px wide and 10px text. This lifts them into their own strip below each figure and enlarges them: steppers 40x40, selects 40px tall, Reset a labelled 36px button.
The slider keeps the label on its own line and wraps the range, stepper and suffix together, which fixes two clipping bugs the smaller layout exposed: a
+pushed past the card edge in the solid-of-revolution card, and a degree sign detached under the unit-circle label.Measured on the export at 1280 and 390, light and dark: no document overflow, three figures, three control strips, all three below their figure. Only the switches remain 44x24, which is their native shape and meets the 24x24 target.
45 visual template and landing tests pass; typecheck is clean.