Enhance file download handling and web interface. Update the download handler to support inline previews based on query parameters. Introduce a preview button for supported file types in the web interface, along with corresponding styles for action buttons. This improves user experience by allowing direct file previews without downloads.

This commit is contained in:
2026-08-29 18:26:27 +03:00
parent 3c43b70fb4
commit c788ccc825
3 changed files with 42 additions and 2 deletions
+10
View File
@@ -101,6 +101,16 @@
th { color: var(--muted); font-weight: 600; font-size: 0.8rem; }
td.name { cursor: pointer; color: var(--accent); }
td.name.file { color: var(--text); }
td.actions { white-space: nowrap; text-align: right; }
td.actions button {
font: inherit;
border: 1px solid var(--line);
background: var(--card);
border-radius: 6px;
padding: 0.25rem 0.55rem;
cursor: pointer;
}
td.actions button + button { margin-left: 0.35rem; }
pre {
margin: 0.5rem 0 0;
padding: 0.75rem;