From f8e10f07e75f0ed75ebee2aa5ac5bf78edd0f183 Mon Sep 17 00:00:00 2001 From: Maciej Malinowski Date: Wed, 8 Jan 2025 18:28:58 +0100 Subject: [PATCH 1/2] fix: disable scroll when sidebar is open --- src/app/globals.css | 4 ++++ src/app/layout.tsx | 2 +- src/components/navbar.tsx | 8 +++++++- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/src/app/globals.css b/src/app/globals.css index ffb17ee..f8a2ff1 100644 --- a/src/app/globals.css +++ b/src/app/globals.css @@ -85,6 +85,10 @@ } } +:root:has(.no-scroll) { + overflow: hidden; +} + .tiptap p.is-editor-empty:first-child::before { color: hsl(230, 17%, 51%); content: attr(data-placeholder); diff --git a/src/app/layout.tsx b/src/app/layout.tsx index d5c8209..d636997 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -85,7 +85,7 @@ export default function RootLayout({ }>) { return ( - + {children}