diff --git a/app/components-react/editor/elements/SceneSelector.m.less b/app/components-react/editor/elements/SceneSelector.m.less index c46db45a41cd..2d8f6f2ffb4d 100644 --- a/app/components-react/editor/elements/SceneSelector.m.less +++ b/app/components-react/editor/elements/SceneSelector.m.less @@ -7,8 +7,8 @@ justify-content: flex-end; > div:last-child { - top: 32px !important; - height: calc(100% - 32px); + top: 44px !important; + height: calc(100% - 44px); } :global(.ant-dropdown) { @@ -17,6 +17,13 @@ } } +:global(.no-top-padding) { + .top-container > div:last-child { + top: 32px !important; + height: calc(100% - 32px); + } +} + .active-scene-container { margin-right: auto; font-weight: 500; diff --git a/app/components/editor/layouts/Classic.tsx b/app/components/editor/layouts/Classic.tsx index f3838b3bfe7c..e390f444ff95 100644 --- a/app/components/editor/layouts/Classic.tsx +++ b/app/components/editor/layouts/Classic.tsx @@ -40,7 +40,7 @@ export default class Classic extends BaseLayout { style={{ height: `${this.resizes.bar1 * 100}%`, padding: '0 8px' }} > {['2', '3', '4'].map(slot => ( -
{this.$slots[slot]}
+
{this.$slots[slot]}
))} diff --git a/app/components/editor/layouts/Default.tsx b/app/components/editor/layouts/Default.tsx index bfdd1124e39b..cf63d8ee25f5 100644 --- a/app/components/editor/layouts/Default.tsx +++ b/app/components/editor/layouts/Default.tsx @@ -26,7 +26,7 @@ export default class Default extends BaseLayout { style={{ height: `${this.resizes.bar2 * 100}%`, padding: '0 8px' }} > {['3', '4', '5'].map(slot => ( -
{this.$slots[slot]}
+
{this.$slots[slot]}
))} ); @@ -53,7 +53,7 @@ export default class Default extends BaseLayout { />
{this.$slots['2']}
diff --git a/app/components/editor/layouts/FourByFour.tsx b/app/components/editor/layouts/FourByFour.tsx index c436f232b5a4..a8b61651bcb8 100644 --- a/app/components/editor/layouts/FourByFour.tsx +++ b/app/components/editor/layouts/FourByFour.tsx @@ -39,8 +39,8 @@ export default class FourByFour extends BaseLayout { reverse={true} />
-
{this.$slots['2']}
-
{this.$slots['3']}
+
{this.$slots['2']}
+
{this.$slots['3']}
-
{this.$slots['4']}
-
{this.$slots['5']}
+
{this.$slots['4']}
+
{this.$slots['5']}
); diff --git a/app/components/editor/layouts/Layouts.m.less b/app/components/editor/layouts/Layouts.m.less index da6dd0b3537a..e84407027968 100644 --- a/app/components/editor/layouts/Layouts.m.less +++ b/app/components/editor/layouts/Layouts.m.less @@ -35,6 +35,10 @@ width: 100%; min-width: 0; + &:global(.no-top-padding) { + padding-top: 0; + } + > div { height: 100%; display: flex; @@ -45,7 +49,3 @@ .side-padded { .padding-h-sides(); } - -.no-top-padding { - padding-top: 0; -} diff --git a/app/components/editor/layouts/Pyramid.tsx b/app/components/editor/layouts/Pyramid.tsx index 7e06dad379dd..a135be37c37f 100644 --- a/app/components/editor/layouts/Pyramid.tsx +++ b/app/components/editor/layouts/Pyramid.tsx @@ -40,7 +40,7 @@ export default class Pyramid extends BaseLayout { style={{ height: `${this.resizes.bar1 * 100}%`, padding: '0 8px' }} > {['2', '3'].map(slot => ( -
{this.$slots[slot]}
+
{this.$slots[slot]}
))}