pages responsiveness (#4287)

This commit is contained in:
Lakhan Baheti 2024-04-29 00:52:43 +05:30 committed by GitHub
parent ac4bb1c1b4
commit 4bccbc9804
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 119 additions and 31 deletions

View file

@ -26,7 +26,7 @@ import { NextPageWithLayout } from "@/lib/types";
const PageDetailsPage: NextPageWithLayout = observer(() => {
// states
const [sidePeekVisible, setSidePeekVisible] = useState(true);
const [sidePeekVisible, setSidePeekVisible] = useState(window.innerWidth >= 768 ? true : false);
const [editorReady, setEditorReady] = useState(false);
const [readOnlyEditorReady, setReadOnlyEditorReady] = useState(false);
// refs