From 22d16174a56495582c618e350c3e64882c5fa995 Mon Sep 17 00:00:00 2001 From: Zichao Lin Date: Sun, 5 Jul 2026 18:51:09 +0800 Subject: [PATCH] fix(ui): align form-action buttons vertically --- app/static/style.css | 2 +- server.log | 35 +++++++++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+), 1 deletion(-) diff --git a/app/static/style.css b/app/static/style.css index 037c208..02719cc 100644 --- a/app/static/style.css +++ b/app/static/style.css @@ -47,7 +47,7 @@ input:focus, select:focus { outline: none; border-color: var(--primary); box-sha input[type="text"] + label, input[type="password"] + label, input[type="datetime-local"] + label, select + label { margin-top: 1.1rem; } .form-card { background: var(--card-bg); padding: 1.5rem; border-radius: 8px; border: 1px solid var(--border); } .form-actions { display: flex; gap: .75rem; margin-top: 1.25rem; align-items: center; } -.form-actions .btn, .form-actions button { display: inline-flex; align-items: center; white-space: nowrap; } +.form-actions .btn, .form-actions button { display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; height: 2.1rem; } .form-card button[type="submit"] { margin-top: 1.25rem; } .form-row { display: flex; gap: .5rem; align-items: center; } .form-row input[type="text"], .form-row select { flex: 1; width: auto; min-width: 0; } diff --git a/server.log b/server.log index c545fe6..5710c8b 100644 --- a/server.log +++ b/server.log @@ -144,3 +144,38 @@ INFO: 127.0.0.1:65088 - "GET /postcards/3/edit HTTP/1.1" 200 OK INFO: 127.0.0.1:65088 - "GET /static/style.css HTTP/1.1" 304 Not Modified INFO: 127.0.0.1:61247 - "GET /login HTTP/1.1" 200 OK INFO: 127.0.0.1:61247 - "GET /static/style.css HTTP/1.1" 200 OK +INFO: 127.0.0.1:58525 - "GET /profiles HTTP/1.1" 200 OK +INFO: 127.0.0.1:58525 - "GET /static/style.css HTTP/1.1" 304 Not Modified +INFO: 127.0.0.1:58525 - "GET /dashboard HTTP/1.1" 200 OK +INFO: 127.0.0.1:58525 - "GET /profiles/3/postcards HTTP/1.1" 200 OK +INFO: 127.0.0.1:58525 - "GET /static/style.css HTTP/1.1" 304 Not Modified +INFO: 127.0.0.1:64313 - "GET /postcards/2/edit HTTP/1.1" 303 See Other +INFO: 127.0.0.1:64313 - "GET /login HTTP/1.1" 200 OK +INFO: 127.0.0.1:64313 - "GET /static/style.css HTTP/1.1" 200 OK +INFO: 127.0.0.1:64313 - "GET /favicon.ico HTTP/1.1" 404 Not Found +INFO: 127.0.0.1:56155 - "GET /postcards/3 HTTP/1.1" 200 OK +INFO: 127.0.0.1:56155 - "GET /static/style.css HTTP/1.1" 200 OK +INFO: 127.0.0.1:56155 - "GET /postcards/3/edit HTTP/1.1" 200 OK +INFO: 127.0.0.1:64186 - "GET /postcards/3/edit HTTP/1.1" 200 OK +INFO: 127.0.0.1:64186 - "GET /static/style.css HTTP/1.1" 200 OK +INFO: 127.0.0.1:64186 - "GET /favicon.ico HTTP/1.1" 404 Not Found +INFO: 127.0.0.1:64186 - "GET /dashboard HTTP/1.1" 200 OK +INFO: 127.0.0.1:64186 - "GET /static/style.css HTTP/1.1" 304 Not Modified +INFO: 127.0.0.1:64186 - "GET /profiles/3/postcards HTTP/1.1" 200 OK +INFO: 127.0.0.1:54092 - "POST /login HTTP/1.1" 303 See Other +INFO: 127.0.0.1:54092 - "GET /dashboard HTTP/1.1" 200 OK +INFO: 127.0.0.1:54092 - "GET /static/style.css HTTP/1.1" 304 Not Modified +INFO: 127.0.0.1:64172 - "GET /postcards/2/edit HTTP/1.1" 200 OK +INFO: 127.0.0.1:64172 - "GET /static/style.css HTTP/1.1" 304 Not Modified +INFO: 127.0.0.1:53612 - "GET /postcards/3 HTTP/1.1" 200 OK +INFO: 127.0.0.1:53612 - "GET /static/style.css HTTP/1.1" 304 Not Modified +INFO: 127.0.0.1:53612 - "GET /postcards/3/edit HTTP/1.1" 200 OK +INFO: 127.0.0.1:64632 - "GET /postcards/3/edit HTTP/1.1" 200 OK +INFO: 127.0.0.1:64632 - "GET /static/style.css HTTP/1.1" 200 OK +INFO: 127.0.0.1:64632 - "GET /favicon.ico HTTP/1.1" 404 Not Found +INFO: 127.0.0.1:56793 - "GET /login HTTP/1.1" 303 See Other +INFO: 127.0.0.1:56793 - "GET /dashboard HTTP/1.1" 200 OK +INFO: 127.0.0.1:56793 - "GET /static/style.css HTTP/1.1" 200 OK +INFO: 127.0.0.1:56793 - "GET /favicon.ico HTTP/1.1" 404 Not Found +INFO: 127.0.0.1:63573 - "GET /postcards/2/edit HTTP/1.1" 200 OK +INFO: 127.0.0.1:63573 - "GET /static/style.css HTTP/1.1" 304 Not Modified