Yuchen Yuan Claude Opus 4.7 commited on
Commit
059dfbe
·
1 Parent(s): 40c3d2c

TopBar: bump header popovers to z-50 so React Flow can't overlay them

Browse files

The Papers / Theme popovers had z-30, but React Flow creates its own
stacking context for the canvas, which was rendering nodes on top of
the popover content when they overlapped. Bumping both popovers to
z-50 (same layer as the mobile drawer) puts them above the canvas.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>

frontend/src/components/ThemeSwitcher.tsx CHANGED
@@ -72,7 +72,7 @@ export function ThemeSwitcher() {
72
  // long taglines don't truncate.
73
  <div
74
  role="menu"
75
- className="absolute right-0 top-full mt-1 rounded-lg border border-edge bg-surface shadow-xl z-30 p-2 flex flex-col gap-1 w-[min(17rem,calc(100vw-1.5rem))]"
76
  >
77
  {/* w- is viewport-aware: 17rem (272px) on wide screens, else
78
  capped at viewport minus 24px so it stays flush with the
 
72
  // long taglines don't truncate.
73
  <div
74
  role="menu"
75
+ className="absolute right-0 top-full mt-1 rounded-lg border border-edge bg-surface shadow-xl z-50 p-2 flex flex-col gap-1 w-[min(17rem,calc(100vw-1.5rem))]"
76
  >
77
  {/* w- is viewport-aware: 17rem (272px) on wide screens, else
78
  capped at viewport minus 24px so it stays flush with the
frontend/src/components/TopBar.tsx CHANGED
@@ -246,7 +246,7 @@ function PapersPopover() {
246
  // menu tracks with the header cluster.
247
  <div
248
  role="menu"
249
- className="fixed right-3 top-14 sm:absolute sm:right-0 sm:top-full sm:mt-1 rounded-lg border border-edge bg-surface shadow-xl z-30 p-2 flex flex-col gap-0.5 w-[min(22rem,calc(100vw-1.5rem))]"
250
  >
251
  {papers.map((p) => (
252
  <a
 
246
  // menu tracks with the header cluster.
247
  <div
248
  role="menu"
249
+ className="fixed right-3 top-14 sm:absolute sm:right-0 sm:top-full sm:mt-1 rounded-lg border border-edge bg-surface shadow-xl z-50 p-2 flex flex-col gap-0.5 w-[min(22rem,calc(100vw-1.5rem))]"
250
  >
251
  {papers.map((p) => (
252
  <a