[Feature]: update layout

pull/1351/head
seel.xu 2025-02-19 10:14:07 +08:00 committed by Seel.Xu
parent 76d8cd0197
commit ae42726149
3 changed files with 3 additions and 3 deletions

View File

@ -26,7 +26,7 @@ $footer-background-color ?= $scheme-main
$gap ?= 64px $gap ?= 64px
$tablet ?= 769px $tablet ?= 769px
$desktop ?= 1088px $desktop ?= 1088px
$widescreen ?= 1280px $widescreen ?= 1580px
$fullhd ?= 1472px $fullhd ?= 1472px
$shadow ?= 0 4px 10px rgba(0, 0, 0, 0.05) $shadow ?= 0 4px 10px rgba(0, 0, 0, 0.05)

View File

@ -41,7 +41,7 @@ function getColumnCount(widgets, config, page) {
function getColumnSizeClass(columnCount) { function getColumnSizeClass(columnCount) {
switch (columnCount) { switch (columnCount) {
case 2: case 2:
return 'is-4-tablet is-4-desktop is-4-widescreen'; return 'is-6-tablet is-3-desktop is-3-widescreen';
case 3: case 3:
return 'is-4-tablet is-4-desktop is-3-widescreen'; return 'is-4-tablet is-4-desktop is-3-widescreen';
} }

View File

@ -26,7 +26,7 @@ module.exports = class extends Component {
'order-2': true, 'order-2': true,
'column-main': true, 'column-main': true,
'is-12': columnCount === 1, 'is-12': columnCount === 1,
'is-8-tablet is-8-desktop is-8-widescreen': columnCount === 2, 'is-6-tablet is-9-desktop is-9-widescreen': columnCount === 2,
'is-8-tablet is-8-desktop is-6-widescreen': columnCount === 3 'is-8-tablet is-8-desktop is-6-widescreen': columnCount === 3
})} dangerouslySetInnerHTML={{ __html: body }}></div> })} dangerouslySetInnerHTML={{ __html: body }}></div>
<Widgets site={site} config={config} helper={helper} page={page} position={'left'} /> <Widgets site={site} config={config} helper={helper} page={page} position={'left'} />