Skip to content

Commit e43efa6

Browse files
Fix mobile layout: news/dialog overlap and notification overflow
Co-authored-by: interstellarmt <178904023+interstellarmt@users.noreply.github.com> Agent-Logs-Url: https://github.com/antvis/dumi-theme-antv/sessions/8f5b2502-ff48-4a83-8381-bddacf69f513
1 parent b28614c commit e43efa6

4 files changed

Lines changed: 11 additions & 6 deletions

File tree

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
.content {
22
height: 500px;
3+
overflow: hidden;
34

45
@media only screen and (max-width: 767.99px) {
56
height: auto;
7+
overflow: visible;
68
}
79
}

src/slots/Banner/Notification.module.less

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -77,12 +77,12 @@
7777

7878
50% {
7979
opacity: 0;
80-
top: -30px;
80+
top: -44px;
8181
}
8282

8383
83.3% {
8484
opacity: 0;
85-
top: 30px;
85+
top: 44px;
8686
}
8787

8888
100% {
@@ -95,12 +95,12 @@
9595
@keyframes showAndHide1 {
9696
0% {
9797
opacity: 0;
98-
top: 30px;
98+
top: 44px;
9999
}
100100

101101
33.3% {
102102
opacity: 0;
103-
top: 30px;
103+
top: 44px;
104104
}
105105

106106
50% {
@@ -115,6 +115,6 @@
115115

116116
100% {
117117
opacity: 0;
118-
top: -30px;
118+
top: -44px;
119119
}
120120
}

src/slots/Banner/index.module.less

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,9 @@
359359
}
360360

361361
.notifications {
362-
width: 100%;
362+
left: 4.5%;
363+
width: calc(100% - 9%);
364+
margin-left: 0;
363365
display: block;
364366
bottom: 20px;
365367
height: 48px;

src/slots/Detail/index.module.less

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,7 @@
187187
height: 128px;
188188
box-sizing: border-box;
189189
padding: 0 4.5%;
190+
overflow: hidden;
190191
}
191192

192193
.teaser {

0 commit comments

Comments
 (0)