Skip to content

Commit 7dfc5c9

Browse files
committed
Update editor component styles, spacing, and scrollbars for improved layout consistency
1 parent a7021dc commit 7dfc5c9

11 files changed

Lines changed: 26 additions & 21 deletions

File tree

‎apps/editor/src/views/panel/frontend/Home/Home.module.scss‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
justify-content: space-between;
55
gap: 4px;
66
width: 100%;
7-
padding: 4px 12px;
7+
padding: 4px 10px;
88

99
&__left {
1010
display: flex;
@@ -40,7 +40,7 @@
4040
flex-direction: column;
4141
align-items: center;
4242
justify-content: space-between;
43-
gap: 24px;
43+
gap: 20px;
4444
height: 100%;
4545
padding-top: 4px;
4646

@@ -65,7 +65,7 @@
6565
border-radius: 10px;
6666
border: 1px solid var(--cwc-border-color);
6767
overflow: hidden;
68-
margin: 0 12px;
68+
margin: 0 10px;
6969
z-index: 1;
7070

7171
> button {

‎apps/editor/src/views/panel/frontend/Main/MainView/MainView.module.scss‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
display: flex;
2020
flex-direction: column;
2121
gap: 6px;
22-
margin: 0 12px;
22+
margin: 0 10px;
2323
}
2424

2525
.edit-format {

‎apps/editor/src/views/panel/frontend/Main/MainView/components/Header/Header.module.scss‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
display: flex;
33
justify-content: space-between;
44
align-items: center;
5-
padding: 4px 12px;
5+
padding: 4px 10px;
66
gap: 14px;
77

88
&__left {

‎apps/editor/src/views/panel/frontend/components/Layout/Footer/Footer.module.scss‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@
44
z-index: -1; // Makes context menu of a web configuration appear above
55
display: flex;
66
justify-content: space-between;
7-
align-items: center;
8-
padding-right: 12px;
9-
height: 41px;
7+
padding: 5px 4px 0 4px;
108
border-top: 1px solid var(--cwc-border-color-dimmed);
119

1210
> div {
@@ -19,7 +17,6 @@
1917
align-items: center;
2018
height: 100%;
2119
gap: 6px;
22-
padding-left: 12px;
2320
transition: var(--transition-duration-250) opacity
2421
var(--transition-timing-function);
2522
}

‎packages/ui/src/components/editor/panel/Configurations/Configurations.module.scss‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,10 @@
1313
justify-content: space-between;
1414
align-items: center;
1515
gap: 4px;
16-
height: var(--list-item-height);
16+
height: 22px;
1717
padding: 0 12px;
18+
margin: 0 4px;
19+
border-radius: var(--border-radius-small);
1820

1921
&:hover {
2022
background-color: var(--vscode-list-hoverBackground);
@@ -105,7 +107,7 @@
105107

106108
.footer {
107109
display: flex;
108-
padding: 10px 12px 12px 12px;
110+
padding: 8px 10px 10px 10px;
109111

110112
> button {
111113
flex: 1;

‎packages/ui/src/components/editor/panel/ListHeader/ListHeader.module.scss‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
.header {
2-
height: var(--list-item-height);
3-
padding: 0 12px;
2+
height: 28px;
3+
padding: 0 8px;
4+
margin: 0 4px;
5+
border-radius: var(--border-radius-small);
46
display: flex;
57
justify-content: space-between;
68
align-items: center;

‎packages/ui/src/components/editor/panel/Tabs/Tabs.module.scss‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.tabs {
22
height: 25px;
3-
padding: 0 12px;
3+
padding: 0 10px 0 12px;
44
margin-bottom: 8px;
55
display: flex;
66
justify-content: space-between;

‎packages/ui/src/components/editor/panel/Tasks/Tasks.module.scss‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,12 @@
1111

1212
.item {
1313
display: flex;
14-
padding: 1px 12px 6px 10px;
14+
padding: 1px 6px 6px 6px;
15+
padding-top: 1px;
16+
padding-right: 6px;
17+
padding-bottom: 6px;
18+
margin: 0 4px;
19+
border-radius: var(--border-radius-small);
1520
gap: 4px;
1621
position: relative;
1722

‎packages/ui/src/components/editor/panel/Tasks/Tasks.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ export const Tasks: React.FC<Props> = (props) => {
117117
className={cn(styles.item, {
118118
[styles['item--forwarded']]: is_forwarded
119119
})}
120-
style={{ paddingLeft: `${10 + params.depth * 20}px` }}
120+
style={{ paddingLeft: `${6 + params.depth * 20}px` }}
121121
>
122122
{[...Array(params.depth)].map((_, i) => (
123123
<div
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
@mixin variables {
22
--font-family-accent: 'Bangers', system-ui;
33

4+
--border-radius-small: var(--vscode-cornerRadius-small);
5+
46
--disabled-opacity: 0.5;
57
--dimmed-opacity: 0.7;
68
--drag-handle-opacity: 0.6;
79

810
--transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
911
--transition-duration-150: 0.15s;
1012
--transition-duration-250: 0.25s;
11-
12-
--list-item-height: 22px;
1313
}

0 commit comments

Comments
 (0)