fix(profiles): remove duplicate border, center-align textarea/button; notes read-only on postcards page

This commit is contained in:
2026-07-06 19:41:21 +08:00
parent 9db6b849d4
commit 6157e40db9
2 changed files with 5 additions and 7 deletions

View File

@@ -6,11 +6,9 @@
<a href="/profiles/{{ profile.id }}/postcards/new" class="btn btn-primary">+ 新明信片</a>
</div>
<div style="margin-bottom:1rem">
<form method="post" action="/profiles/{{ profile.id }}/notes" style="display:flex;align-items:flex-start;gap:.4rem">
<input type="hidden" name="redirect_to" value="/profiles/{{ profile.id }}/postcards">
<textarea name="notes" rows="1" placeholder="备注(仅自己可见)" style="flex:1;padding:.3rem .5rem;border:1px solid var(--border);border-radius:6px;font-size:.8rem;resize:none;font-family:inherit;line-height:1.4;min-height:1.6rem">{{ profile.notes }}</textarea>
<button type="submit" class="btn btn-sm" style="flex-shrink:0;margin-top:0">保存</button>
</form>
{% if profile.notes %}
<div style="padding:.3rem .5rem;font-size:.85rem;color:var(--text-muted)">{{ profile.notes }}</div>
{% endif %}
</div>
<div class="filter-bar">
<form method="get" class="form-row">

View File

@@ -48,8 +48,8 @@
<span class="stat-label">国家</span>
</div>
</div>
<div class="profile-card-notes" style="padding:.5rem .75rem;border-top:1px solid var(--border)">
<form method="post" action="/profiles/{{ p.id }}/notes" style="display:flex;align-items:flex-start;gap:.4rem">
<div class="profile-card-notes" style="padding:.5rem .75rem">
<form method="post" action="/profiles/{{ p.id }}/notes" style="display:flex;align-items:center;gap:.4rem">
<textarea name="notes" rows="1" placeholder="备注(仅自己可见)" style="flex:1;padding:.3rem .5rem;border:1px solid var(--border);border-radius:6px;font-size:.8rem;resize:none;font-family:inherit;line-height:1.4;min-height:1.6rem">{{ p.notes }}</textarea>
<button type="submit" class="btn btn-sm" style="flex-shrink:0;margin-top:0">保存</button>
</form>