fix(ui): improve template editor modal and card-body spacing
All checks were successful
Deploy to Production / deploy (push) Successful in 1m4s

- Add gap to card-body for consistent field spacing
- Wrap modal content in modal-body-form with proper gap
- Use modal-lg for item add modal to prevent field overflow

Co-Authored-By: Claude Opus 4 <noreply@anthropic.com>
This commit is contained in:
Johngreen
2026-02-10 13:28:44 +09:00
parent 7de011621d
commit 180cc5b163
2 changed files with 13 additions and 1 deletions

View File

@@ -99,6 +99,9 @@ a {
.card-body {
padding: 20px;
display: flex;
flex-direction: column;
gap: 16px;
}
.btn-outline {
@@ -979,6 +982,13 @@ a {
padding-top: 8px;
}
.modal-body-form {
padding: 20px 24px 24px;
display: flex;
flex-direction: column;
gap: 16px;
}
/* ===== Form Grid ===== */
.form-grid {
display: grid;

View File

@@ -338,13 +338,14 @@ export function TemplateEditor({ tenantId, initialData, onSave, isEdit }: Props)
{showAddItem && (
<div className="modal-overlay" onClick={() => setShowAddItem(false)}>
<div className="modal-content" onClick={e => e.stopPropagation()}>
<div className="modal-content modal-lg" onClick={e => e.stopPropagation()}>
<div className="modal-header">
<h3> </h3>
<button type="button" className="modal-close" onClick={() => setShowAddItem(false)}>
<span className="material-symbols-outlined">close</span>
</button>
</div>
<div className="modal-body-form">
<div className="form-field">
<label> *</label>
<input
@@ -407,6 +408,7 @@ export function TemplateEditor({ tenantId, initialData, onSave, isEdit }: Props)
</button>
</div>
</div>
</div>
</div>
)}