From 08684493f49b6dff9e043f9572c3a32bd76218ee Mon Sep 17 00:00:00 2001 From: Zichao Lin Date: Sun, 5 Jul 2026 21:11:14 +0800 Subject: [PATCH] fix(ui): explicitly set text color on .btn to prevent white text on mobile --- app/static/style.css | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/static/style.css b/app/static/style.css index f28eb61..2eb2ad7 100644 --- a/app/static/style.css +++ b/app/static/style.css @@ -59,7 +59,7 @@ input[type="text"] + label, input[type="password"] + label, input[type="datetime .nickname-edit input[type="text"] { width: 140px; flex: none; } /* Buttons */ -.btn { display: inline-flex; align-items: center; justify-content: center; padding: .5rem 1rem; border: 1px solid var(--border); border-radius: 6px; background: #fff; cursor: pointer; font-size: .9rem; text-align: center; white-space: nowrap; text-decoration: none; line-height: 1; } +.btn { display: inline-flex; align-items: center; justify-content: center; padding: .5rem 1rem; border: 1px solid var(--border); border-radius: 6px; background: #fff; color: var(--text); cursor: pointer; font-size: .9rem; text-align: center; white-space: nowrap; text-decoration: none; line-height: 1; } .btn:hover { background: var(--bg); text-decoration: none; } .btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); } .btn-primary:hover { background: var(--primary-hover); } @@ -146,6 +146,4 @@ code { background: var(--bg); padding: .15rem .4rem; border-radius: 4px; font-si @media (max-width: 640px) { .detail-grid { grid-template-columns: 1fr; } .card-grid { grid-template-columns: 1fr; } - .upload-form { flex-direction: column; align-items: stretch; } - .upload-form input[type="file"] { max-width: none; } }