Skip to content

Commit b17a1ba

Browse files
committed
fix: 修正 iPhone 卡片左邊緣被切掉的問題
- 第一張卡片固定左邊距為 20px - 卡片寬度調整為 85vw,確保內容完整顯示 - 手機版隱藏左右漸變效果,避免遮擋內容 - 縮小桌面版漸變寬度至 30px
1 parent 078820e commit b17a1ba

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

style.css

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -199,11 +199,11 @@ body {
199199

200200
@media (max-width: 768px) {
201201
.scenario-item:first-child {
202-
margin-left: calc((100vw - 75vw) / 2);
202+
margin-left: 20px;
203203
}
204204

205205
.scenario-item:last-child {
206-
margin-right: calc((100vw - 75vw) / 2);
206+
margin-right: 20px;
207207
}
208208
}
209209

@@ -236,7 +236,7 @@ body {
236236

237237
@media (max-width: 768px) {
238238
.scenario-item {
239-
flex: 0 0 75vw;
239+
flex: 0 0 85vw;
240240
padding: 20px;
241241
min-height: 400px;
242242
}
@@ -508,7 +508,7 @@ body {
508508
top: 20px;
509509
right: 0;
510510
bottom: 20px;
511-
width: 40px;
511+
width: 30px;
512512
background: linear-gradient(to left, #ffffff 0%, rgba(255,255,255,0) 100%);
513513
pointer-events: none;
514514
z-index: 1;
@@ -522,7 +522,7 @@ body {
522522
top: 20px;
523523
left: 0;
524524
bottom: 20px;
525-
width: 40px;
525+
width: 30px;
526526
background: linear-gradient(to right, #ffffff 0%, rgba(255,255,255,0) 100%);
527527
pointer-events: none;
528528
z-index: 1;
@@ -578,7 +578,7 @@ body {
578578

579579
.scenario-wrapper::after,
580580
.scenario-wrapper::before {
581-
width: 20px;
581+
display: none;
582582
}
583583
}
584584

0 commit comments

Comments
 (0)