diff --git a/server/public/css/style.css b/server/public/css/style.css index db79353..ea5e9ed 100644 --- a/server/public/css/style.css +++ b/server/public/css/style.css @@ -112,9 +112,9 @@ body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans- .detail-modal { max-height: 90vh; overflow-y: auto; padding: 0; } .detail-modal input, .detail-modal select, .detail-modal textarea { margin: 0; } .detail-header { background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%); color: #fff; padding: 8px 12px 8px 16px; display: flex; align-items: center; gap: 8px; position: sticky; top: 0; z-index: 1; } -.detail-header .icon-btn { flex-shrink: 0; margin-left: auto; } +.detail-header .icon-btn { padding:0; margin-right:0; flex-shrink: 0; margin-left: auto; } .detail-header .icon-btn svg { stroke: #fff; } -.detail-title-input { flex: 1; font-size: 18px; font-weight: 600; color: #fff; background: transparent; border: none; outline: none; padding: 4px 0; min-width: 0; } +.modal .detail-title-input { flex: 1; font-size: 18px; font-weight: 600; color: #fff; background: transparent; border: none; outline: none; padding: 4px 0; min-width: 0; } .detail-title-input::placeholder { color: rgba(255,255,255,0.6); } .detail-title-input:focus { border: none; outline: none; } .edit-form { padding: 12px 16px 16px 16px; } @@ -127,6 +127,13 @@ body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans- .amount-row { font-weight: 600; } .amount-row label { color: #333; } .edit-amount { flex: 1; font-size: 17px; color: #e53e3e; font-weight: 700; } +.edit-group { margin-bottom: 8px; } +.edit-group-summary { display: flex; align-items: center; gap: 8px; padding: 7px 0; cursor: pointer; border-bottom: 1px solid #f0f0f0; } +.edit-group-summary label { min-width: 48px; font-size: 13px; color: #777; text-align: right; flex-shrink: 0; } +.edit-group-summary span { flex: 1; font-size: 14px; color: #333; } +.group-arrow { width: 14px; height: 14px; stroke: #aaa; fill: none; stroke-width: 2; flex-shrink: 0; } +.edit-group-detail { padding: 4px 0; } +.edit-group-detail .edit-row { margin-bottom: 4px; } .edit-section { margin-top: 8px; border-top: 1px solid #eee; padding-top: 8px; } .edit-section-header { font-size: 13px; font-weight: 600; color: #555; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 2px 0; } .edit-section-header svg { width: 16px; height: 16px; stroke: #888; fill: none; stroke-width: 2; } @@ -137,7 +144,7 @@ details[open] .history-summary::after { content: '收起'; } .attach-gallery { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; } .attach-thumb-wrap { position: relative; display: inline-block; } .attach-thumb { width: 56px; height: 56px; object-fit: cover; border-radius: 6px; border: 1px solid #eee; } -.attach-del-btn { position: absolute; top: -4px; right: -4px; width: 18px; height: 18px; border-radius: 50%; background: rgba(0,0,0,0.5); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; } +.attach-gallery .attach-del-btn { position: absolute; top: -4px; right: -4px; width: 18px; height: 18px; border-radius: 50%; background: rgba(0,0,0,0.5); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; } .attach-del-btn svg { width: 10px; height: 10px; stroke: #fff; fill: none; stroke-width: 2.5; } .attach-add-btn { cursor: pointer; display: flex; align-items: center; } .attach-add-btn svg { width: 18px; height: 18px; stroke: #3b82f6; fill: none; stroke-width: 2; } diff --git a/server/public/index.html b/server/public/index.html index 155fd47..3257048 100644 --- a/server/public/index.html +++ b/server/public/index.html @@ -151,36 +151,49 @@