diff --git a/app/static/style.css b/app/static/style.css index 83a2d3d..637797a 100644 --- a/app/static/style.css +++ b/app/static/style.css @@ -46,14 +46,15 @@ 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; } +.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; } +.form-row input[type="text"], .form-row select { flex: 1; width: auto; min-width: 0; } .form-row .btn { white-space: nowrap; flex-shrink: 0; } +.filter-bar .form-row select { flex: 0 0 auto; width: auto; } .inline-form { margin-bottom: 1.25rem; } /* Buttons */ -button[type="submit"] { margin-top: 1.25rem; } -.btn { display: inline-block; padding: .5rem 1rem; border: 1px solid var(--border); border-radius: 6px; background: #fff; cursor: pointer; font-size: .9rem; text-align: center; } +.btn { display: inline-block; padding: .5rem 1rem; border: 1px solid var(--border); border-radius: 6px; background: #fff; cursor: pointer; font-size: .9rem; text-align: center; white-space: nowrap; } .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); } @@ -90,10 +91,10 @@ code { background: var(--bg); padding: .15rem .4rem; border-radius: 4px; font-si .postcard-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,.06); text-decoration: none; } .thumb { width: 80px; height: 60px; object-fit: cover; border-radius: 4px; flex-shrink: 0; } .thumb.placeholder { display: flex; align-items: center; justify-content: center; background: var(--bg); font-size: 1.5rem; } -.postcard-info { display: flex; flex-direction: column; gap: .25rem; font-size: .9rem; } +.postcard-info { display: flex; flex-direction: column; gap: .15rem; font-size: .9rem; } /* Badge */ -.badge { display: inline-block; padding: .15rem .45rem; border-radius: 999px; font-size: .7rem; font-weight: 600; color: #fff; white-space: nowrap; } +.badge { display: inline-block; padding: .1rem .4rem; border-radius: 999px; font-size: .7rem; font-weight: 600; color: #fff; white-space: nowrap; line-height: 1.4; } .badge-sent { background: var(--sent); } .badge-delivered { background: var(--delivered); } .badge-received { background: var(--received); } diff --git a/app/templates/postcard_form.html b/app/templates/postcard_form.html index 76d6978..20945d3 100644 --- a/app/templates/postcard_form.html +++ b/app/templates/postcard_form.html @@ -19,7 +19,7 @@ - + diff --git a/server.log b/server.log index 5a5e80f..69973e5 100644 --- a/server.log +++ b/server.log @@ -52,3 +52,50 @@ INFO: 127.0.0.1:57711 - "GET /profiles HTTP/1.1" 200 OK INFO: 127.0.0.1:57711 - "GET /static/style.css HTTP/1.1" 304 Not Modified INFO: 127.0.0.1:55656 - "GET /profiles/2/postcards HTTP/1.1" 200 OK INFO: 127.0.0.1:55656 - "GET /static/style.css HTTP/1.1" 304 Not Modified +INFO: 127.0.0.1:60856 - "GET /login HTTP/1.1" 200 OK +INFO: 127.0.0.1:49319 - "GET / HTTP/1.1" 303 See Other +INFO: 127.0.0.1:49319 - "GET /login HTTP/1.1" 200 OK +INFO: 127.0.0.1:49319 - "GET /static/style.css HTTP/1.1" 200 OK +INFO: 127.0.0.1:53181 - "POST /login HTTP/1.1" 401 Unauthorized +INFO: 127.0.0.1:53181 - "POST /login HTTP/1.1" 303 See Other +INFO: 127.0.0.1:53181 - "GET /dashboard HTTP/1.1" 200 OK +INFO: 127.0.0.1:53181 - "GET /profiles/3/postcards HTTP/1.1" 200 OK +INFO: 127.0.0.1:53181 - "GET /postcards/3 HTTP/1.1" 200 OK +INFO: 127.0.0.1:63138 - "GET /postcards/3 HTTP/1.1" 200 OK +INFO: 127.0.0.1:63138 - "GET /static/style.css HTTP/1.1" 200 OK +INFO: 127.0.0.1:63138 - "GET /favicon.ico HTTP/1.1" 404 Not Found +INFO: 127.0.0.1:63141 - "GET /profiles/3/postcards HTTP/1.1" 200 OK +INFO: 127.0.0.1:63141 - "GET /static/style.css HTTP/1.1" 200 OK +INFO: 127.0.0.1:63141 - "GET /favicon.ico HTTP/1.1" 404 Not Found +INFO: 127.0.0.1:63141 - "GET /postcards/3 HTTP/1.1" 200 OK +INFO: 127.0.0.1:63141 - "GET /postcards/1 HTTP/1.1" 303 See Other +INFO: 127.0.0.1:63141 - "GET /profiles HTTP/1.1" 200 OK +INFO: 127.0.0.1:55924 - "GET /profiles/2 HTTP/1.1" 404 Not Found +INFO: 127.0.0.1:55925 - "GET /favicon.ico HTTP/1.1" 404 Not Found +INFO: 127.0.0.1:55924 - "GET /profiles/1 HTTP/1.1" 404 Not Found +INFO: 127.0.0.1:55925 - "GET /favicon.ico HTTP/1.1" 404 Not Found +INFO: 127.0.0.1:55924 - "GET /profiles/3/postcards HTTP/1.1" 200 OK +INFO: 127.0.0.1:55924 - "GET /postcards/3 HTTP/1.1" 200 OK +INFO: 127.0.0.1:55924 - "GET /postcards/3 HTTP/1.1" 200 OK +INFO: 127.0.0.1:55924 - "GET /postcards/3/edit HTTP/1.1" 200 OK +INFO: 127.0.0.1:61501 - "GET /profiles/3/postcards HTTP/1.1" 200 OK +INFO: 127.0.0.1:61501 - "GET /static/style.css HTTP/1.1" 304 Not Modified +INFO: 127.0.0.1:53677 - "GET /postcards/3 HTTP/1.1" 200 OK +INFO: 127.0.0.1:53677 - "GET /static/style.css HTTP/1.1" 304 Not Modified +INFO: 127.0.0.1:53677 - "GET /profiles/3/postcards HTTP/1.1" 200 OK +INFO: 127.0.0.1:53677 - "GET /profiles HTTP/1.1" 200 OK +INFO: 160.248.69.190:0 - "GET / HTTP/1.1" 303 See Other +INFO: 160.248.69.190:0 - "GET /login HTTP/1.1" 200 OK +INFO: 160.248.69.190:0 - "GET /static/style.css HTTP/1.1" 200 OK +INFO: 127.0.0.1:60635 - "GET /login HTTP/1.1" 303 See Other +INFO: 127.0.0.1:60635 - "GET /dashboard HTTP/1.1" 200 OK +INFO: 127.0.0.1:60635 - "GET /static/style.css HTTP/1.1" 200 OK +INFO: 127.0.0.1:60635 - "GET /favicon.ico HTTP/1.1" 404 Not Found +INFO: 127.0.0.1:63640 - "GET /profiles/2/postcards HTTP/1.1" 200 OK +INFO: 127.0.0.1:63640 - "GET /static/style.css HTTP/1.1" 304 Not Modified +INFO: 127.0.0.1:62991 - "GET /postcards/2/edit HTTP/1.1" 200 OK +INFO: 127.0.0.1:62991 - "GET /static/style.css HTTP/1.1" 304 Not Modified +INFO: 127.0.0.1:62639 - "GET /postcards/2 HTTP/1.1" 200 OK +INFO: 127.0.0.1:62639 - "GET /static/style.css HTTP/1.1" 304 Not Modified +INFO: 127.0.0.1:60832 - "GET /profiles HTTP/1.1" 200 OK +INFO: 127.0.0.1:60832 - "GET /static/style.css HTTP/1.1" 304 Not Modified