Skip to content

Commit 27aeaa4

Browse files
committed
fix(style#oso): make absolute positioning of menu work as expected
1 parent 5279468 commit 27aeaa4

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

frontend/src/oso-extensions/OSONotebook.tsx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ import { slotsController } from "../core/slots/slots";
1818
import { useFragmentStore } from "./fragment-store";
1919
import { viewStateAtom } from "@/core/mode";
2020
import { useSetAtom } from "jotai";
21+
import { Panel, PanelGroup } from "react-resizable-panels";
22+
import { PanelsWrapper } from "@/components/editor/chrome/wrapper/panels";
2123

2224
// Force tailwind classnames
2325
// tailwind only creates css for classnames that exist the FE files
@@ -74,7 +76,13 @@ export const OSONotebook: React.FC = memo(() => {
7476
<CssVariables
7577
variables={{ "--marimo-code-editor-font-size": editorFontSize }}
7678
>
77-
{renderBody(mode)}
79+
<PanelsWrapper>
80+
<PanelGroup direction="vertical">
81+
<Panel id="app" key="app" className="relative h-full">
82+
{renderBody(mode)}
83+
</Panel>
84+
</PanelGroup>
85+
</PanelsWrapper>
7886
</CssVariables>
7987
</Providers>
8088
);

0 commit comments

Comments
 (0)