Skip to content

Commit 460635e

Browse files
committed
update style;
1 parent dacaaac commit 460635e

File tree

2 files changed

+14
-5
lines changed

2 files changed

+14
-5
lines changed

src/CodeWF/Pages/Tool/Converter/NuoChe.razor

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,9 @@
161161
162162
// 在小屏幕上,滚动到二维码位置
163163
if (window.innerWidth < 768) {
164-
qrCodeContainer.scrollIntoView({ behavior: 'smooth' });
164+
setTimeout(() => {
165+
qrCodeContainer.scrollIntoView({ behavior: 'smooth' });
166+
}, 100);
165167
} else {
166168
// 在大屏幕上,添加active-qr类
167169
document.querySelector('.generator-layout').classList.add('active-qr');

src/CodeWF/wwwroot/css/nuoche.css

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,6 @@
33
padding: 20px;
44
max-width: 100%;
55
min-height: 100vh;
6-
display: flex;
7-
flex-direction: column;
8-
justify-content: center;
9-
align-items: center;
106
background-color: #f5f7fa;
117
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
128
}
@@ -20,6 +16,7 @@
2016
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
2117
width: 90%;
2218
max-width: 900px;
19+
margin: 0 auto;
2320
}
2421

2522
.generator-layout {
@@ -78,6 +75,7 @@
7875
border-radius: 12px;
7976
overflow: hidden;
8077
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
78+
margin: 0 auto;
8179
}
8280

8381
.card-header {
@@ -350,6 +348,7 @@
350348
@media (max-width: 767px) {
351349
.generator-container {
352350
padding: 20px 15px;
351+
margin-top: 20px;
353352
}
354353

355354
.input-group {
@@ -364,6 +363,10 @@
364363
.button-group {
365364
margin: 15px 0;
366365
}
366+
367+
.card {
368+
margin-top: 20px;
369+
}
367370
}
368371

369372
@media (min-width: 992px) {
@@ -374,4 +377,8 @@
374377
.qr-code-container img {
375378
max-width: 320px;
376379
}
380+
381+
.generator-container, .card {
382+
margin-top: 40px;
383+
}
377384
}

0 commit comments

Comments
 (0)