feat(hosts): keep compact row actions inline (#1547)

This commit is contained in:
ZacharyZcR authored and GitHub committed 2026-10-03 21:02:54 +08:00
1 parent 2c4de5f705
commit c66702deb1
2 files changed
+74 -50

No files matched your search

+1
View File
@@ -754,6 +754,7 @@ export function SidebarTree({
const row = visibleRows[index];
if (!row) return FOLDER_ROW_HEIGHT;
if (isFolder(row.item)) return FOLDER_ROW_HEIGHT;
if (isCompactDensity) return 29;
const tagExtra = showTags && row.item.tags?.length ? TAG_ROW_EXTRA : 0;
// The resource bars only render for an online host that reported CPU/RAM.
// Reserving their height unconditionally left a gap under every offline