fix(ui): badge sizing, button alignment, country XX format, date-only fields
This commit is contained in:
@@ -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); }
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
<label>收件人</label>
|
||||
<input type="text" name="recipient_name" value="{{ postcard.recipient_name if postcard else '' }}">
|
||||
<label>国家/地区</label>
|
||||
<input type="text" name="country" value="{{ postcard.country if postcard else '' }}">
|
||||
<input type="text" name="country" value="{{ postcard.country if postcard else '' }}" pattern="[A-Z]{2}" title="两个大写字母(如 JP、US)" maxlength="2" style="width:80px;text-transform:uppercase">
|
||||
<label>寄出时间</label>
|
||||
<input type="date" name="send_time" value="{{ postcard.send_time.strftime('%Y-%m-%d') if postcard and postcard.send_time else '' }}">
|
||||
<label>到达时间</label>
|
||||
|
||||
Reference in New Issue
Block a user