From 552fdd0cc483c292a06adb2f10068f2dc2820993 Mon Sep 17 00:00:00 2001 From: andreiggr Date: Thu, 23 Feb 2023 15:50:22 +0200 Subject: [PATCH] wide_view fixes --- src/components/theme/DefaultViewWide/DefaultViewWide.jsx | 3 +-- .../volto/components/theme/View/DefaultView.jsx | 1 - theme/site/elements/container.overrides | 2 -- theme/site/globals/site.overrides | 7 +++++++ 4 files changed, 8 insertions(+), 5 deletions(-) diff --git a/src/components/theme/DefaultViewWide/DefaultViewWide.jsx b/src/components/theme/DefaultViewWide/DefaultViewWide.jsx index 867982e..e2e5319 100644 --- a/src/components/theme/DefaultViewWide/DefaultViewWide.jsx +++ b/src/components/theme/DefaultViewWide/DefaultViewWide.jsx @@ -53,8 +53,7 @@ const DefaultViewWide = (props) => { // if (!shouldRenderRoutes) return ; return ( <> - - + {hasBlocksData(content) ? (
diff --git a/src/customizations/volto/components/theme/View/DefaultView.jsx b/src/customizations/volto/components/theme/View/DefaultView.jsx index cdf64a2..ff5615c 100644 --- a/src/customizations/volto/components/theme/View/DefaultView.jsx +++ b/src/customizations/volto/components/theme/View/DefaultView.jsx @@ -38,7 +38,6 @@ const DefaultView = (props) => { const { content, location } = props; const blocksFieldname = getBlocksFieldname(content); const blocksLayoutFieldname = getBlocksLayoutFieldname(content); - return ( {renderPortletManager('plone.leftcolumn', 2, { ...props })} diff --git a/theme/site/elements/container.overrides b/theme/site/elements/container.overrides index 264a1d3..494ab1a 100644 --- a/theme/site/elements/container.overrides +++ b/theme/site/elements/container.overrides @@ -15,8 +15,6 @@ .contentWidthMedia(@width, @gutter, @offset) { .ui.container { width: 100% !important; - padding-right: 2rem; - padding-left: 2rem; margin-right: @gutter !important; margin-left: @gutter !important; } diff --git a/theme/site/globals/site.overrides b/theme/site/globals/site.overrides index 39ceb7f..3c70730 100644 --- a/theme/site/globals/site.overrides +++ b/theme/site/globals/site.overrides @@ -3653,3 +3653,10 @@ body.mosaic-view .content-area main { font-size: 12px; line-height: normal; } + +[class~="wide_view"] [id="page-document"] > *, +#main .wide_width, +#main .has--size--wide_width +{ + max-width: 100% !important; +} \ No newline at end of file