Skip to content

Commit 58fb088

Browse files
yulin0629claude
andcommitted
fix: 修正 QR Code 在手機版的對齊問題
- 添加響應式 CSS 樣式改善手機版顯示 - 減少手機版的 margin 和 padding - 明確設定 margin: 0 auto 確保 QR Code 置中 - 優化 iPhone 14 Pro 等手機裝置的使用體驗 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 7ad57c8 commit 58fb088

1 file changed

Lines changed: 15 additions & 0 deletions

File tree

style.css

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -485,6 +485,13 @@ body {
485485
box-shadow: 0 4px 20px rgba(0,0,0,0.08);
486486
}
487487

488+
@media (max-width: 768px) {
489+
.qr-code-section {
490+
margin: 40px 20px;
491+
padding: 24px 16px;
492+
}
493+
}
494+
488495
.qr-code-section h3 {
489496
color: #1a1a1a;
490497
margin-bottom: 20px;
@@ -499,6 +506,14 @@ body {
499506
box-shadow: 0 8px 30px rgba(0,0,0,0.12);
500507
backdrop-filter: blur(20px);
501508
-webkit-backdrop-filter: blur(20px);
509+
margin: 0 auto;
510+
}
511+
512+
@media (max-width: 768px) {
513+
#qrcode {
514+
padding: 16px;
515+
margin: 0 auto;
516+
}
502517
}
503518

504519
.qr-note {

0 commit comments

Comments
 (0)