style: zero padding for square icon buttons

This commit is contained in:
tian 2026-05-08 11:42:16 +08:00
parent 7b56df5043
commit 3025175db5

View File

@ -35,10 +35,10 @@
<div style="margin-top:6px;display:flex;justify-content:space-between;align-items:center"> <div style="margin-top:6px;display:flex;justify-content:space-between;align-items:center">
<div><span style="font-weight:500;font-size:13px">{{.Name}}</span> <span class="muted small">{{.PhotoCount}}张</span></div> <div><span style="font-weight:500;font-size:13px">{{.Name}}</span> <span class="muted small">{{.PhotoCount}}张</span></div>
<div class="actions compact" style="gap:2px"> <div class="actions compact" style="gap:2px">
<button class="btn ghost" type="button" style="font-size:12px;padding:1px;width:22px;height:22px;min-height:auto" title="编辑" onclick="showEdit({{.ID}},'{{.Name}}',[{{range $i,$p := .Photos}}{{if $i}},{{end}}'/ui/face-photo/{{$p}}'{{end}}])">&#9998;</button> <button class="btn ghost" type="button" style="font-size:12px;padding:0;width:22px;height:22px;min-height:auto;gap:0" title="编辑" onclick="showEdit({{.ID}},'{{.Name}}',[{{range $i,$p := .Photos}}{{if $i}},{{end}}'/ui/face-photo/{{$p}}'{{end}}])">&#9998;</button>
<form method="post" action="/ui/face-gallery/delete" style="display:inline" onsubmit="return confirm('确定删除 {{.Name}}')"> <form method="post" action="/ui/face-gallery/delete" style="display:inline" onsubmit="return confirm('确定删除 {{.Name}}')">
<input type="hidden" name="id" value="{{.ID}}"> <input type="hidden" name="id" value="{{.ID}}">
<button class="btn ghost" type="submit" style="color:var(--danger-soft-text);font-size:12px;padding:1px;width:22px;height:22px;min-height:auto" title="删除">&#10005;</button> <button class="btn ghost" type="submit" style="color:var(--danger-soft-text);font-size:12px;padding:0;width:22px;height:22px;min-height:auto;gap:0" title="删除">&#10005;</button>
</form> </form>
</div> </div>
</div> </div>