이력 행: 되돌리기 버튼 줄바꿈 방지

This commit is contained in:
한땀 작업실 committed 2026-11-01 08:09:35 +00:00
1 parent e1ddbff1f5
commit ddae2c776a
1 file changed
+4 -1
+4 -1
View File
@@ -75,6 +75,9 @@
.list-item{display:flex;justify-content:space-between;align-items:baseline;gap:10px; .list-item{display:flex;justify-content:space-between;align-items:baseline;gap:10px;
padding:13px 2px;border-bottom:1px solid var(--line);text-decoration:none;color:var(--ink)} padding:13px 2px;border-bottom:1px solid var(--line);text-decoration:none;color:var(--ink)}
.list-item small{color:var(--muted)} .list-item small{color:var(--muted)}
.hist-item{align-items:center}
.hist-item span{flex:1;min-width:0;font-size:13px;line-height:1.5}
.hist-item button{flex:none;white-space:nowrap}
.status{font-size:13px;color:var(--muted);margin-top:10px;min-height:20px} .status{font-size:13px;color:var(--muted);margin-top:10px;min-height:20px}
.status.err{color:#9B3B2A} .status.err{color:#9B3B2A}
.toast{position:fixed;left:50%;bottom:calc(110px + var(--safe-b));transform:translateX(-50%); .toast{position:fixed;left:50%;bottom:calc(110px + var(--safe-b));transform:translateX(-50%);
@@ -780,7 +783,7 @@ $('#hist-toggle').onclick = async () => {
try{ try{
const d = await api('/api/history'); const d = await api('/api/history');
box.innerHTML = (d.history || []).map(h => ` box.innerHTML = (d.history || []).map(h => `
<div class="list-item"> <div class="list-item hist-item">
<span>${h.date} · ${h.subject}</span> <span>${h.date} · ${h.subject}</span>
<button class="btn ghost btn-sm" data-undo="${h.sha}">되돌리기</button> <button class="btn ghost btn-sm" data-undo="${h.sha}">되돌리기</button>
</div>`).join('') || '<p class="note">이력이 없습니다.</p>'; </div>`).join('') || '<p class="note">이력이 없습니다.</p>';