Skip to content

Commit 7f02a36

Browse files
Implementing mobile styles for better display (#343)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: interstellarmt <178904023+interstellarmt@users.noreply.github.com> Co-authored-by: interstellarmt <787982239@qq.com>
1 parent 02b7e19 commit 7f02a36

8 files changed

Lines changed: 162 additions & 142 deletions

File tree

src/components/AI/HomeDialog/AntVBanner/index.module.less

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,24 @@
3232
margin: 0;
3333
font-size: 16px;
3434
}
35+
36+
@media only screen and (max-width: 767.99px) {
37+
.sage {
38+
width: 80px;
39+
}
40+
41+
h1 {
42+
font-size: 22px;
43+
line-height: 28px;
44+
}
45+
46+
.desc {
47+
font-size: 14px;
48+
line-height: 22px;
49+
}
50+
51+
.slogan {
52+
font-size: 13px;
53+
}
54+
}
3555
}

src/components/AI/HomeDialog/PromptTextarea/index.module.less

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,23 @@
9999
font-size: 14px;
100100
}
101101
}
102+
103+
@media only screen and (max-width: 767.99px) {
104+
width: 100%;
105+
height: auto;
106+
min-height: 120px;
107+
108+
&.withDatasource {
109+
height: auto;
110+
min-height: 160px;
111+
}
112+
113+
.header {
114+
> div {
115+
max-width: 100%;
116+
}
117+
}
118+
}
102119
}
103120

104121
.datasourceBtn {

src/components/AI/HomeDialog/RecommendCase/index.module.less

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,18 @@
4343
grid-template-columns: repeat(4, 1fr);
4444
gap: 16px;
4545
}
46+
47+
@media only screen and (max-width: 767.99px) {
48+
.title {
49+
width: 100%;
50+
51+
.quickStart {
52+
font-size: 16px;
53+
}
54+
}
55+
56+
.list {
57+
grid-template-columns: repeat(2, 1fr);
58+
gap: 12px;
59+
}
60+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
11
.content {
22
height: 500px;
3+
isolation: isolate;
4+
5+
@media only screen and (max-width: 767.99px) {
6+
height: auto;
7+
}
38
}

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;

0 commit comments

Comments
 (0)