Skip to content

Commit 75201db

Browse files
committed
fix: editor blocks styles
1 parent 1f04272 commit 75201db

File tree

5 files changed

+16
-4
lines changed

5 files changed

+16
-4
lines changed

src/editor-v2/components/Sidebar/Sidebar.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,8 @@ $block: '.#{$ns}sidebar';
1313
&__block {
1414
width: 100%;
1515
border-bottom: 1px solid var(--g-color-line-generic);
16+
overflow-x: scroll;
17+
box-sizing: border-box;
18+
flex: 0 0 auto;
1619
}
1720
}

src/editor-v2/components/Tabs/Tabs.scss

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ $block: '.#{$ns}tabs';
66
#{$block} {
77
overflow: auto;
88
width: 100%;
9+
display: flex;
10+
flex-direction: column;
911

1012
&__item {
1113
color: var(--g-color-text-hint);
@@ -25,11 +27,14 @@ $block: '.#{$ns}tabs';
2527
display: inline-flex;
2628
flex-direction: row;
2729
padding: 16px 4px;
30+
flex: 0 0 auto;
31+
box-sizing: border-box;
32+
overflow-x: auto;
2833
}
2934

3035
&__body {
3136
flex: 1;
32-
border-right: 1px solid var(--g-color-line-generic);
37+
min-height: 1px;
3338
overflow-y: auto;
3439
}
3540
}

src/editor-v2/containers/GlobalConfig/GlobalConfig.scss

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,10 @@
44
$block: '.#{$ns}global-config';
55

66
#{$block} {
7-
padding: 12px;
8-
97
&__title {
10-
margin-bottom: 16px;
8+
padding: 12px;
119
margin-top: 8px;
1210
@include text-subheader-3;
11+
border-bottom: 1px solid var(--g-color-line-generic);
1312
}
1413
}

src/editor-v2/containers/ViewSwitches/ViewSwitches.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,9 @@ $block: '.#{$ns}view-switches';
1212
&__zoom {
1313
display: flex;
1414
gap: 4px;
15+
16+
&-select {
17+
min-width: 80px;
18+
}
1519
}
1620
}

src/editor-v2/containers/ViewSwitches/ViewSwitches.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ const ViewSwitches: React.FC = () => {
9999
</Button>
100100

101101
<Select
102+
className={b('zoom-select')}
102103
multiple={false}
103104
value={currentZoomValue}
104105
options={zoomOptions}

0 commit comments

Comments
 (0)