diff --git a/web/src/features/Overview.tsx b/web/src/features/Overview.tsx
index f01abf7..a89f3f5 100644
--- a/web/src/features/Overview.tsx
+++ b/web/src/features/Overview.tsx
@@ -109,7 +109,14 @@ export function Overview(actions: OverviewActions) {
{showingRecords ? null :
}
{orderError ? {orderError}
: null}
- {showingRecords ? actions.onEditRecords(folder.id)} onAddRecord={() => actions.onAddRecord(folder.id)} /> : {!rows.length ? keyword ? { setKeyword(''); setSelected([]); }}>清除搜索} /> :
: undefined} /> : | {actions.onBulk&&bulkSelecting?:'名称'} | 最新备份 | {showBackupNotes ? 备份说明 | : null}操作 |
{rows.map(({asset, leaf, latest}) => {
+ {showingRecords ? actions.onEditRecords(folder.id)} onAddRecord={() => actions.onAddRecord(folder.id)} /> : {!rows.length ? keyword ? { setKeyword(''); setSelected([]); }}>清除搜索} /> :
: undefined} /> :
+
+
+
+ {showBackupNotes ? : null}
+
+
+ | {actions.onBulk&&bulkSelecting?:'名称'} | 最新备份 | {showBackupNotes ? 备份说明 | : null}操作 |
{rows.map(({asset, leaf, latest}) => {
const Icon = asset.kind === 'folder' ? Folder : File;
const marked = leaf && asset.backup_target === true;
const index=siblings.findIndex(entry=>entry.id===asset.id);
diff --git a/web/src/styles.css b/web/src/styles.css
index d20be61..c3f3a75 100644
--- a/web/src/styles.css
+++ b/web/src/styles.css
@@ -90,15 +90,10 @@ tbody tr:hover { background: #fcfdff; }
.explorer-table { table-layout: fixed; }
.explorer-table th:first-child { border-radius: 12px 0 0 0; }
.explorer-table th:last-child { border-radius: 0 12px 0 0; }
-.explorer-table th:nth-child(1) { width: 23%; }
-.explorer-table th:nth-child(2) { width: 15%; }
-.explorer-table th:nth-child(3) { width: 15%; }
-.explorer-table th:nth-child(4) { width: 12%; }
-.explorer-table th:nth-child(5) { width: 35%; }
.explorer-table td { padding: 16px; height: 66px; }
.explorer-identity { display: flex; align-items: center; gap: 14px; min-width: 0; }
.explorer-identity > svg { width: 28px; height: 28px; flex-shrink: 0; }
-.explorer-identity > div { min-width: 0; }
+.explorer-identity > div { flex: 1; min-width: 0; }
.folder-icon { color: #74aaff; fill: #8bbbff; stroke-width: 1.25; }
.file-icon { color: #869bbb; }
.asset-name { display: block; border: 0; background: transparent; text-align: left; color: #172b4d; font-weight: 500; font-size: 14px; padding: 0; overflow-wrap: anywhere; }
@@ -222,9 +217,6 @@ tbody tr:hover { background: #fcfdff; }
.directory-toolbar { flex-wrap: wrap; }
.explorer-toolbar { width: 100%; }
.explorer-toolbar .search-field { flex: 1; }
- .explorer-table th:nth-child(1) { width: 22%; }
- .explorer-table th:nth-child(2), .explorer-table th:nth-child(3) { width: 15%; }
- .explorer-table th:nth-child(4) { width: 13%; }
}
@media (max-width: 1000px) {
.app-shell { display: block; }
@@ -249,13 +241,16 @@ tbody tr:hover { background: #fcfdff; }
.explorer-toolbar select { width: 100%; }
.explorer-table, .explorer-table tbody { display: block; width: 100%; min-width: 0; }
.explorer-table thead { display: none; }
+ .explorer-table colgroup { display: none; }
.explorer-table tr { display: block; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.explorer-table tr:last-child { border-bottom: 0; }
.explorer-table td { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 7px 0; border: 0; font-size: 12px; height: auto; overflow-wrap: anywhere; }
.explorer-table td::before { content: attr(data-label); color: var(--muted); font-size: 12px; flex: 0 0 64px; }
- .explorer-table td:first-child { padding: 2px 0 13px; }
+ .explorer-table td:first-child { padding: 2px 0 10px; }
.explorer-table td:first-child::before { content: none; }
- .explorer-identity { width: 100%; gap: 12px; }
+ .explorer-identity { width: 100%; gap: 8px; }
+ .explorer-table time { white-space: nowrap; }
+ .explorer-table .directory-backup-notes { flex: 1; text-align: right; }
.explorer-actions { justify-content: flex-end; gap: 8px; }
.explorer-actions .text-button { font-size: 12px; }
.due-actions { justify-content: flex-end; }
@@ -296,10 +291,13 @@ tbody tr:hover { background: #fcfdff; }
.action-menu-options button.danger { color: #ba3a3a; }
.drag-handle { border: 0; background: transparent; color: #8f9bad; padding: 3px; display: flex; flex-shrink: 0; cursor: grab; }
.drag-handle:disabled { opacity: .3; cursor: default; }
-.explorer-table th:nth-child(1), .explorer-table th:nth-child(2), .explorer-table th:nth-child(3) { width: 33.333333%; }
-.explorer-table.with-backup-notes th:nth-child(1), .explorer-table.with-backup-notes th:nth-child(2), .explorer-table.with-backup-notes th:nth-child(3), .explorer-table.with-backup-notes th:nth-child(4) { width: 25%; }
+.explorer-table .directory-time-column { width: 160px; }
+.explorer-table .directory-actions-column { width: 88px; }
+.explorer-table.with-backup-notes .directory-name-column { width: 52%; }
.directory-backup-notes { white-space: pre-wrap; overflow-wrap: anywhere; min-width: 0; }
-.explorer-table td { height: 58px; }
+@media (min-width: 1001px) {
+ .explorer-table td { height: 58px; }
+}
.record-table-scroll { margin-top: 12px; }
.record-detail-table { min-width: 0; table-layout: fixed; width: 100%; }
.record-detail-table th { width: 33.333333%; }