fix(ui): open cover/artist lightbox on single click#67
Conversation
The three zoomable images (Now Playing panel cover, artist photo on the Artist page, album cover on the Album page) showed a `cursor-zoom-in` on hover but were wired to `onDoubleClick`, so a single click did nothing and double-click only fired about half the time. Swap to `onClick` so the interaction matches the cursor cue and lands on the first try.
|
Warning Rate limit exceeded
You’ve run out of usage credits. Purchase more in the billing tab. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Run ID: ⛔ Files ignored due to path filters (2)
📒 Files selected for processing (3)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Review Summary by QodoFix image lightbox opening on single click instead of double click
WalkthroughsDescription• Changed three image lightbox triggers from onDoubleClick to onClick • Aligns cursor feedback (cursor-zoom-in) with actual interaction behavior • Affects Now Playing panel cover, Artist detail photo, and Album detail cover • Updated related comment documenting the pointer-events pattern Diagramflowchart LR
A["onDoubleClick handlers"] -- "replaced with" --> B["onClick handlers"]
B -- "applied to" --> C["NowPlayingPanel cover"]
B -- "applied to" --> D["ArtistDetailView photo"]
B -- "applied to" --> E["AlbumDetailView cover"]
C -- "matches" --> F["cursor-zoom-in cursor"]
D -- "matches" --> F
E -- "matches" --> F
File Changes1. src/components/layout/NowPlayingPanel.tsx
|
Code Review by Qodo
1. Mouse-only lightbox trigger
|
…nv and tar versions
There was a problem hiding this comment.
Pull request overview
This PR updates zoomable artwork interactions so the Now Playing cover, artist photo, and album cover open their lightbox on a single click instead of a double click.
Changes:
- Replaced
onDoubleClickwithonClickfor three lightbox triggers. - Updated the artist image overlay comment to match the new click behavior.
- Includes unrelated lockfile dependency bumps.
Reviewed changes
Copilot reviewed 3 out of 5 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
src/components/views/ArtistDetailView.tsx |
Makes the artist photo lightbox open on click and updates the overlay comment. |
src/components/views/AlbumDetailView.tsx |
Makes the album cover lightbox open on click. |
src/components/layout/NowPlayingPanel.tsx |
Makes the now-playing artwork lightbox open on click. |
src-tauri/Cargo.lock |
Updates transitive Rust crate versions unrelated to the UI change. |
bun.lock |
Updates typescript-eslint lockfile metadata unrelated to the UI change. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Summary
cursor-zoom-inbut were wired toonDoubleClick, so a single click did nothing and double-click only landed half the time.onClickso the interaction matches the cursor cue and the lightbox opens on the first try.pointer-events-nonewrapper +pointer-events-autobutton pattern.Test plan
bun run tauri devbun run typecheck && bun run lint— déjà verts en local.