Repository navigation
Rework the costume and sound list and take the tidy paint editor - #218
Merged
Merged
Conversation
Costumes are thumbnail cards and sounds are compact rows, each with its name always visible. On phones and tablets the list is a strip of named tiles with the add button beside it instead of over it. The paint editor moves to scratch-paint 0.3.0, and the old tablet overrides that clipped its tool rail are gone.
Dragging over the space between items keeps a valid drop position, a selected item inside a coloured folder shows a ring, the delete button works in right-to-left phone layouts and keeps its touch size, and the costume panel can no longer grow past its container.
On tablets the asset panel cancelled the paint editor's minimum row height, so tools spilled out of the rail. The override now applies to the phone layout only. The tab area can also shrink to the window, so a short window scrolls the paint editor instead of pushing it under the backpack. Pins scratch-paint to the keyboard-usable Arrange menu and sets the version to 3.6.0.
Between 901px and 1249px the sound list is narrow enough that the delete button on the selected row cut its name down to one letter. Rows drop the speaker tile at those widths, so the name has the room.
Sound folders are rows too, and the narrow-column rule hid their folder icon. It now only drops the speaker tile from sounds. Pins scratch-paint to the commit that stops dropdown menus keeping focus after pointer use.
Deploying scratch-gui with
|
| Latest commit: |
71dd42d
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://c22f0cb2.scratch-gui.pages.dev |
| Branch Preview URL: | https://paint-tidy-layout.scratch-gui.pages.dev |
Member
Author
|
Closing while I fix the build: the merge with develop left an unclosed block in |
The merge left an unclosed block in selector.css and brought back the old phone sound rows. Restore the reworked list styles, size the new waveform thumbnails inside the row tile, drop the sound-editor-only min-height rule now that every tab panel can shrink, pin scratch-paint to the merged commit and set the version to 3.5.0 on top of 3.4.0.
…lumn Between 901px and 1249px the sound list column was 72px wider than on develop, which pushed the new sound editor into its phone layout early, and the rows hid their thumbnail there. Sounds in that band are now compact stacked tiles in a column as wide as develop's, with the waveform above the name and length. Wider windows keep rows, with a larger waveform tile.
Member
Author
|
Closing while I restore the fade at the end of the costume and sound lists behind the add button. I'll reopen it once that's done. |
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.
Reworks the costume and sound list beside the editors, and takes the tidy paint editor layout from MistWarp/scratch-paint#12, which is merged.
What changed
develop, so the sound editor keeps its width. Each sound there is a small tile with the waveform above its name and length.develop) and removes old tablet rules that clipped its tool rail between 601px and 900px.The sprite pane and the stage selector use the same item component and are unchanged.
Preview: https://paint-tidy-layout.scratch-gui.pages.dev/editor (open the Costumes or Sounds tab).
Version
3.4.0 to 3.5.0 (new feature, backwards compatible). Re-bumped after #214 and #215 merged.
After the merge with develop
developwas merged into this branch once #214 and #215 had landed. That merge left an unclosed block inselector.css, which is what failed the Cloudflare build, and brought back the old phone sound rows. The two commits after the merge fix that and fit the list around the new Sounds tab:selector.cssis back to this branch's version, and the waveform thumbnails from Rework the Sounds tab into a DAW-style editor with recording, markers and a phone layout #215 are sized by the row styles.aa3d334, which has the same tree as the branch commit pinned before.developbetween 901px and 1249px. That put the new sound editor into its phone layout early and hid the waveforms there. The column is now 80px in that band, as ondevelop, and the editor width matches production at every size measured (901, 1000, 1024, 1100, 1150 and 1249px).One difference remains. At 1250px and wider the sound column is 176px against 150px on
develop, to give names room beside the waveform. The sound editor is 26px narrower there, so its transport stays on two rows up to a 1326px window instead of 1300px (default stage size). It is the same two-row layoutdevelopshows from 1250px to 1300px.Checks
Every step of
node.js.ymlrun locally on the final commit, since Actions is not running on pull requests: lint, typecheck, conventions, both i18n checks, community CSS, fork pins, unit tests (4027 passed, 1 skipped),build:deployandvalidate-deploy.The fade was checked in Chromium and Firefox at 1440, 1100, 768 and 390px wide and in right-to-left: the last item scrolls clear of the button, items beside the button stay clickable, and the add menu still opens and adds a costume. An independent review of the fade found no must-fix issues. Its one should-fix, the fade showing on lists with no add button, is fixed.
Checked on the production build in Chromium and Firefox, from 390px to 1440px wide and down to 390px tall: select, delete, drag to reorder, right-click menu, sound folders, long names, the empty Sounds tab, dark theme and right-to-left. After the merge the costume list and the paint editor were re-checked for layout at the same sizes. The paint editor's menus and keyboard handling were checked before the merge, on the same scratch-paint code.
Screenshots
Costume list, before and after:
Sound list, before and after:
Sound list in a 1024px window, before and after. The sound editor is the same width in both:
Phone, costumes, before and after:
Phone, sounds, before and after:
Dark theme and tablet width:
A selected costume inside a coloured folder:
Scrolling the costume list, with costumes fading out behind the add button:
Selecting, dragging to reorder and deleting: