diff --git a/src/features/surveys/features/SurveyCreator/SurveyCreator.tsx b/src/features/surveys/features/SurveyCreator/SurveyCreator.tsx index 11b8128e..04da36fb 100644 --- a/src/features/surveys/features/SurveyCreator/SurveyCreator.tsx +++ b/src/features/surveys/features/SurveyCreator/SurveyCreator.tsx @@ -17,7 +17,7 @@ export default function SurveyCreator() { isPanelOpened && 'xl:mr-[550px]' )} > -
+
diff --git a/src/features/surveys/features/SurveyCreator/components/PreviewPanel/PreviewPanel.tsx b/src/features/surveys/features/SurveyCreator/components/PreviewPanel/PreviewPanel.tsx index 6db0b87d..4e81f670 100644 --- a/src/features/surveys/features/SurveyCreator/components/PreviewPanel/PreviewPanel.tsx +++ b/src/features/surveys/features/SurveyCreator/components/PreviewPanel/PreviewPanel.tsx @@ -29,11 +29,11 @@ export default function PreviewPanel() {
-
+
-
+
{ const [isPanelOpened, setIsPanelOpened] = useState(false); + useEffect(() => { + if (window.innerWidth > 1280) { + setIsPanelOpened(true); + } + }, []); + const togglePanel = () => { setIsPanelOpened((prev) => !prev); }; diff --git a/src/layout/ExternalRouteWrapper.tsx b/src/layout/ExternalRouteWrapper.tsx index 3e3d8794..0ecbe7b8 100644 --- a/src/layout/ExternalRouteWrapper.tsx +++ b/src/layout/ExternalRouteWrapper.tsx @@ -2,7 +2,7 @@ import React, { PropsWithChildren } from 'react'; export default function ExternalPageWrapper({ children }: PropsWithChildren) { return ( -
+
{children}
); diff --git a/src/layout/StandardPageWrapper.tsx b/src/layout/StandardPageWrapper.tsx index 43b547aa..f8e25000 100644 --- a/src/layout/StandardPageWrapper.tsx +++ b/src/layout/StandardPageWrapper.tsx @@ -2,7 +2,7 @@ import React, { PropsWithChildren } from 'react'; export default function StandardPageWrapper({ children }: PropsWithChildren) { return ( -
+
{children}
);