Skip to content

Commit 4adfc91

Browse files
authored
fix: compatible with safari of scroll should only work in vertical mode (#376)
1 parent abb35a9 commit 4adfc91

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

assets/index.less

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,15 +65,13 @@
6565

6666
&-list {
6767
display: flex;
68-
flex: 1 0 auto;
6968
position: relative;
7069
transition: transform 0.3s;
7170
}
7271

7372
// >>>>>>>> Operations
7473
&-operations {
7574
display: flex;
76-
flex: 1 0 auto;
7775

7876
&-hidden {
7977
position: absolute;

assets/position.less

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,8 @@
5252
flex-direction: column;
5353
min-width: 50px;
5454

55-
&-list {
56-
flex-direction: column;
57-
}
58-
59-
&-operations {
55+
&-list, &-operations {
56+
flex: 1 0 auto; // fix safari scroll problem
6057
flex-direction: column;
6158
}
6259
}

0 commit comments

Comments
 (0)