Skip to content

Commit

Permalink
wide_view fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
andreiggr committed Feb 23, 2023
1 parent a300a69 commit 552fdd0
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
3 changes: 1 addition & 2 deletions src/components/theme/DefaultViewWide/DefaultViewWide.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,7 @@ const DefaultViewWide = (props) => {
// if (!shouldRenderRoutes) return <Spinner />;
return (
<>
<BodyClass className={`document_wide_view`} />

<BodyClass className={`wide_view`} />
<Grid columns="equal" className="zero-margin">
{hasBlocksData(content) ? (
<div id="page-document" className="ui container">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ const DefaultView = (props) => {
const { content, location } = props;
const blocksFieldname = getBlocksFieldname(content);
const blocksLayoutFieldname = getBlocksLayoutFieldname(content);

return (
<Grid columns="equal" className="zero-margin">
{renderPortletManager('plone.leftcolumn', 2, { ...props })}
Expand Down
2 changes: 0 additions & 2 deletions theme/site/elements/container.overrides
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
7 changes: 7 additions & 0 deletions theme/site/globals/site.overrides
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

0 comments on commit 552fdd0

Please sign in to comment.