Repository navigation
fix: keep the cover upload button the same size in every editor mode - #267
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
React Doctor found no new issues. 🎉 Reviewed by React Doctor for commit |
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
tagium | 3074787 | Commit Preview URL Branch Preview URL |
Oct 17 2026, 09:10 AM |
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.
Note
🤖 Claude Opus 5.5 on behalf of Oliver
problem
On desktop widths (
lg+), the track editor's "upload cover" button was 118px tall in normal mode and 120px in advanced mode. Turning on the comment field or the dj rows had the same effect, so the button changed size by 2px when you switched modes.cause
The button had no fixed height on desktop. It used
lg:h-auto lg:min-h-24 lg:max-h-30 lg:flex-1, so it stretched to fill the cover column down to the bottom of the form column, up to a 120px cap:useEditorModeLayoutAnimationalso measured[data-cover-upload]before and after each mode switch and animated itsflex-basisbetween the two heights. That code existed only to support the stretching.what changed
src/features/editor/coverArt.tsx: the desktop button now has a fixedlg:h-29.5(118px, the height it already had in normal mode). Thelg:h-auto lg:min-h-24 lg:max-h-30 lg:flex-1stretch classes are gone.src/features/editor/TrackMetadataEditor.tsx: removed the cover upload height measurement and animation (getCoverUpload, the two height refs, and theeditorBodyRefthat was only used to find the button). The download actions still slide the same way when you switch modes.Below
lg, nothing changes: the button is stillh-10(40px).screenshots
Same viewport (1440×900), same track (
tagged.mp3), advanced fields turned on. The magenta overlay is not part of the app; it shows the button's measured height.before
after
Measured heights (px):
review guide
setup: in settings, turn on "show advanced fields". Optionally turn on dj analysis too. Import any track (e.g.
tests/e2e/local-editing/fixtures/tagged.mp3) at a width of at least 1024px.flows
lg. The button should be the 40px horizontal bar, as before.edge cases
decision to review: I used 118px (
lg:h-29.5), the current normal-mode height, so the default view looks the same as before. The other option is the old 120px cap (lg:h-30), which would make normal mode 2px taller instead.verification
automated (all passed locally)
bun run typecheckvp linton the two changed filesvp fmt --checkvp test run: 388 tests passedvp exec playwright teston chromium with--workers=3, runningcover-art,track-editing,dj-analysisandvorbis-comments: 19 tests passedstill manual
Made by Claude Opus 5.5 (
claude-opus-5-5) running in Claude Code inside T3 Code.