Clarify template workflow and unify square image preview edges

This commit is contained in:
Pigway
2026-10-08 21:07:34 +08:00
parent 220521cf72
commit b90c4a700d
4 changed files with 37 additions and 6 deletions
+2 -2
View File
@@ -67,8 +67,8 @@ dialog.image-viewer h2.image-viewer-name{font-size:16px;min-width:0;flex:1}
.image-viewer-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:0}
.image-viewer-actions button{white-space:nowrap}
.image-viewer-actions button[aria-pressed="true"]{background:var(--accent);color:var(--panel)}
.image-viewer-viewport{display:flex;align-items:center;justify-content:center;flex:1;min-height:0;min-width:0;overflow:hidden;background:var(--soft);border-radius:12px}
.image-viewer-viewport img{display:block;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;margin:0}
.image-viewer-viewport{display:flex;align-items:center;justify-content:center;flex:1;min-height:0;min-width:0;overflow:hidden;background:var(--soft);border-radius:0}
.image-viewer-viewport img{display:block;width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;margin:0;border-radius:0}
.image-viewer-viewport.actual-size{display:flex;align-items:flex-start;justify-content:flex-start;overflow:auto}
.image-viewer-viewport.actual-size img{flex:0 0 auto;width:auto;height:auto;max-width:none;max-height:none;margin:auto}
@media(max-width:600px){dialog.image-viewer{width:calc(100vw - 16px);height:calc(100dvh - 16px);max-height:calc(100dvh - 16px);padding:12px}}