Skip to content

fix(library): hoist album/artist grid row above siblings while + popover is open#75

Merged
InstaZDLL merged 1 commit into
mainfrom
fix/album-artist-grid-popover-stacking
May 20, 2026
Merged

fix(library): hoist album/artist grid row above siblings while + popover is open#75
InstaZDLL merged 1 commit into
mainfrom
fix/album-artist-grid-popover-stacking

Conversation

@InstaZDLL
Copy link
Copy Markdown
Owner

@InstaZDLL InstaZDLL commented May 20, 2026

Summary

  • Follow-up to fix(library): hoist track row above siblings while + popover is open #74, which fixed the same bug in TrackTable.
  • AlbumGrid and ArtistList use the same virtualized-row pattern (position: absolute per row, no z-index). When the + popover opens on a card, sibling rows rendered after it in DOM order paint on top — the popover looks transparent and clicks on its items hit the cards below.
  • Fix: when a row contains the card whose menu is open, bump its zIndex to 20. Granular per-row because each grid row holds multiple cards.

Test plan

…ver is open

Follow-up to PR #74. Same stacking-context trap as TrackTable: every
virtualized row in AlbumGrid and ArtistList is `position: absolute`
without a z-index, so the `+` popover's `z-50` couldn't escape its row
and the rows rendered after it in DOM order painted on top — same
visual transparency + click-swallowing symptoms.

Bump the row's z-index when one of its cards owns the open popover.
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 20, 2026

Warning

Rate limit exceeded

@InstaZDLL has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 50 minutes and 50 seconds before requesting another review.

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 @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

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 configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: 3c9c79aa-10d2-4f60-becf-721730ebf852

📥 Commits

Reviewing files that changed from the base of the PR and between e3be0b9 and 79f6a08.

📒 Files selected for processing (1)
  • src/components/views/LibraryView.tsx
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/album-artist-grid-popover-stacking

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@qodo-code-review
Copy link
Copy Markdown

qodo-code-review Bot commented May 20, 2026

Code Review by Qodo

🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0)

Grey Divider

Great, no issues found!

Qodo reviewed your code and found no material issues that require review

Grey Divider

Qodo Logo

@github-actions github-actions Bot added scope: frontend React/Vite frontend (src/) type: fix Bug fix labels May 20, 2026
@InstaZDLL InstaZDLL self-assigned this May 20, 2026
@github-actions github-actions Bot added the size: s 10-50 lines label May 20, 2026
@codacy-production
Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 7 complexity · 0 duplication

Metric Results
Complexity 7
Duplication 0

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@InstaZDLL InstaZDLL merged commit 9ec111f into main May 20, 2026
14 checks passed
@InstaZDLL InstaZDLL deleted the fix/album-artist-grid-popover-stacking branch May 20, 2026 19:54
InstaZDLL added a commit that referenced this pull request May 20, 2026
Follow-up to #75. The z-index fix wasn't enough in practice: the
virtualizer rows use `transform: translateY()`, which creates a
stacking context, and the popover's `top-full right-0` resolved to
"below the entire tile" rather than "below the + button". Some
ancestor (likely the page scroller's own transform / will-change set
by tanstack-virtual) was clipping or restacking the popover so the
following row's avatar/cover still bled through.

Switch the popover to a `createPortal(..., document.body)` render
path. Each `+` button registers its DOM node in a `Map<id, HTMLButtonElement>`
ref; the popover takes that node as `anchorEl` and positions itself
via `getBoundingClientRect` + scroll/resize listeners. Now anchored
right under the trigger button (not below the full tile), and lives
at the document root so stacking contexts no longer apply.

TrackTable keeps its current in-flow popover — its z-index fix from
#74 works because the row layout is a single flex line, not a CSS
grid of multiple cards.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope: frontend React/Vite frontend (src/) size: s 10-50 lines type: fix Bug fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant