Skip to content

A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.

fix(frontend): raise viewer banner above the app header (#10411)

Kiran Gadhave91d8eae43ae0
diff --git a/frontend/src/components/editor/viewer-banner.tsx b/frontend/src/components/editor/viewer-banner.tsx
index 87835b2d91..ad5ebc0b73 100644
--- a/frontend/src/components/editor/viewer-banner.tsx
+++ b/frontend/src/components/editor/viewer-banner.tsx
@@ -53,9 +53,11 @@ export const ViewerBanner = () => {
// A zero-height sticky row pins the banner to the top-left of the notebook
// scroll area, so it stays visible while scrolling without reserving space in
- // the flow.
+ // the flow. Because it reserves no space, the banner visually overlaps the
+ // app header (sticky at z-50); setting the banner to z-100 keeps the header
+ // from covering the button and swallowing its clicks.
return (
- <div className="sticky top-2 left-2 z-50 h-0 ml-2 w-fit print:hidden">
+ <div className="sticky top-2 left-2 z-100 h-0 ml-2 w-fit print:hidden">
<Banner
kind="info"
className="flex items-center gap-2 rounded px-2 py-1 text-xs shadow-sm"