Skip to content

Commit 87ee891

Browse files
docs: Made UI elements no longer overflow demo box (#2043)
* Made UI elements not overflow demo box * Prevented header overflow
1 parent 65e9485 commit 87ee891

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

docs/app/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export default function Layout({ children }: { children: ReactNode }) {
2323
<body className="flex min-h-screen flex-col [--spacing-fd-container:1566px]">
2424
<Banner
2525
height="24px"
26-
className="whitespace-break-spaces bg-[#fef6d5] text-black"
26+
className="z-[10000] whitespace-break-spaces bg-[#fef6d5] text-black"
2727
>
2828
🚀 BlockNote AI is here!{" "}
2929
<a href="/docs/features/ai" className="italic underline">

docs/app/styles.css

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,22 @@ body {
4545
color: var(--color-fd-primary);
4646
}
4747

48+
#nd-nav {
49+
z-index: 10000;
50+
}
51+
4852
:focus-visible {
4953
box-shadow: unset !important;
5054
}
5155

56+
.demo {
57+
overflow: none;
58+
}
59+
60+
.demo .bn-container {
61+
position: relative;
62+
}
63+
5264
.demo .bn-container:not(.bn-comment-editor),
5365
.demo .bn-editor {
5466
height: 100%;

0 commit comments

Comments
 (0)