Skip to content

Commit 0c4ce38

Browse files
authored
fix: Fixes lists left margin on Super editor on mobile (#2983)
1 parent 6b15118 commit 0c4ce38

1 file changed

Lines changed: 9 additions & 6 deletions

File tree

  • packages/web/src/javascripts/Components/SuperEditor/Lexical/Theme

packages/web/src/javascripts/Components/SuperEditor/Lexical/Theme/lists.scss

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,27 @@
11
:root {
2-
--lexical-ordered-list-left-margin: 16px;
2+
--lexical-list-left-margin: 16px;
33

44
--checkbox-size: 18px;
55
@media screen and (max-width: 450px) {
66
--checkbox-size: 26px;
77
}
8+
@media screen and (max-width: 768px) {
9+
--lexical-list-left-margin: 20px;
10+
}
811
}
912
.monospace-font {
10-
--lexical-ordered-list-left-margin: 42px;
13+
--lexical-list-left-margin: 42px;
1114
}
1215
@for $i from 1 through 5 {
1316
.Lexical__ol#{$i} {
1417
padding: 0;
1518
margin: 0;
16-
margin-left: var(--lexical-ordered-list-left-margin);
19+
margin-left: var(--lexical-list-left-margin);
1720
list-style-position: outside;
1821

1922
&.Lexical__rtl {
2023
margin-left: 0;
21-
margin-right: var(--lexical-ordered-list-left-margin);
24+
margin-right: var(--lexical-list-left-margin);
2225
}
2326
}
2427
}
@@ -37,12 +40,12 @@
3740
.Lexical__ul {
3841
padding: 0;
3942
margin: 0;
40-
margin-left: 16px;
43+
margin-left: var(--lexical-list-left-margin);
4144
list-style-position: outside;
4245

4346
&.Lexical__rtl {
4447
margin-left: 0;
45-
margin-right: 16px;
48+
margin-right: var(--lexical-list-left-margin);
4649
}
4750
}
4851
.Lexical__checkList {

0 commit comments

Comments
 (0)