Skip to content

Commit 41d0876

Browse files
committed
Add mobile support for export page
1 parent c9b66b1 commit 41d0876

File tree

1 file changed

+30
-1
lines changed

1 file changed

+30
-1
lines changed

app/export.html

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,28 @@
209209
margin-top: 10px;
210210
}
211211

212+
@media screen and (max-width: 700px) {
213+
.title {
214+
padding: 0 20px;
215+
margin-top: 30px;
216+
text-align: center;
217+
}
218+
main {
219+
height: initial;
220+
}
221+
.intro {
222+
padding: 0 20px;
223+
width: initial;
224+
}
225+
.start-btn {
226+
margin-top: 15px;
227+
}
228+
.logo {
229+
margin: 30px 0;
230+
position: initial;
231+
}
232+
}
233+
212234
::-webkit-scrollbar-thumb {
213235
height: 231px;
214236
background: #181C23;
@@ -287,14 +309,21 @@
287309
}, 2000)
288310
}
289311

312+
var titleChildren = []
313+
titleChildren.push(m('span', '携手腾讯云, '))
314+
if (document.body.clientWidth <= 700) {
315+
titleChildren.push(m('br'))
316+
}
317+
titleChildren.push(m('span', 'Cloud Studio 全面升级'))
318+
290319
// View
291320
var Home = {
292321
view: function() {
293322
return [
294323
m('main', [
295324
m('h1', {
296325
class: 'title'
297-
}, '携手腾讯云,Cloud Studio 全面升级'),
326+
}, titleChildren),
298327
m('div', {
299328
class: 'intro'
300329
},[

0 commit comments

Comments
 (0)