From 0df26d7c9d60988d749b056ceaacbaec62190637 Mon Sep 17 00:00:00 2001 From: Maxime Lalo Date: Mon, 17 Apr 2023 16:06:55 +0200 Subject: [PATCH] :bug: Fixing double page --- .../DefaultDoubleSidePage/classes.module.scss | 23 ++++++++----------- .../DefaultDoubleSidePage/index.tsx | 5 +--- .../Folder/CreateFolder/classes.module.scss | 3 +++ 3 files changed, 13 insertions(+), 18 deletions(-) diff --git a/src/front/Components/LayoutTemplates/DefaultDoubleSidePage/classes.module.scss b/src/front/Components/LayoutTemplates/DefaultDoubleSidePage/classes.module.scss index 03265215..4bf00039 100644 --- a/src/front/Components/LayoutTemplates/DefaultDoubleSidePage/classes.module.scss +++ b/src/front/Components/LayoutTemplates/DefaultDoubleSidePage/classes.module.scss @@ -7,34 +7,29 @@ .content { display: flex; - align-items: center; height: calc(100vh - 83px); - width: 100%; .sides { - width: 100%; - height: 100%; - display: flex; - align-items: center; - justify-content: center; + width: 50%; &.image-container { + display: flex; + align-items: center; + justify-content: center; @media (max-width: $screen-m) { display: none; } background: var(--grey-soft); .image { + height: 100%; object-fit: contain; } } - .side-content { - max-width: 530px; - } - &.background-image-container { - height: 100%; - width: 100%; + display: flex; + align-items: center; + justify-content: center; .background-image { height: 100%; @@ -44,4 +39,4 @@ } } } -} \ No newline at end of file +} diff --git a/src/front/Components/LayoutTemplates/DefaultDoubleSidePage/index.tsx b/src/front/Components/LayoutTemplates/DefaultDoubleSidePage/index.tsx index a8105fd1..b1cf2d53 100644 --- a/src/front/Components/LayoutTemplates/DefaultDoubleSidePage/index.tsx +++ b/src/front/Components/LayoutTemplates/DefaultDoubleSidePage/index.tsx @@ -25,14 +25,11 @@ export default class DefaultDoubleSidePage extends React.Component
-
-
{this.props.children}
-
+
{this.props.children}
{this.props.type === "image" && (
{"right diff --git a/src/front/Components/Layouts/Folder/CreateFolder/classes.module.scss b/src/front/Components/Layouts/Folder/CreateFolder/classes.module.scss index e69de29b..6f8600c7 100644 --- a/src/front/Components/Layouts/Folder/CreateFolder/classes.module.scss +++ b/src/front/Components/Layouts/Folder/CreateFolder/classes.module.scss @@ -0,0 +1,3 @@ +.root { + margin: 64px 0 0 64px; +}