fix: remove column constraint from backup date row headers

This commit is contained in:
Pulse Monitor
2025-08-29 10:42:28 +00:00
parent ab8f4fde26
commit 6d5aa7a4eb
@@ -1668,17 +1668,16 @@ const UnifiedBackups: Component = () => {
{(group) => (
<>
<tr class="bg-gray-50/50 dark:bg-gray-700/30">
<td class="p-0.5 px-1.5 text-xs font-medium text-gray-600 dark:text-gray-400 whitespace-nowrap">
{group.label} ({group.items.length})
</td>
<td colspan={(() => {
let cols = 6; // Base columns: Type, VMID, Node, Time, Backup, Details
let cols = 7; // Base columns: Name, Type, VMID, Node, Time, Backup, Details
if (backupTypeFilter() === 'all' || backupTypeFilter() === 'remote') cols++; // Add Owner column
if (backupTypeFilter() !== 'snapshot') cols++; // Add Size column
if (backupTypeFilter() === 'all' || backupTypeFilter() === 'remote') cols++; // Add Verified column
if (backupTypeFilter() !== 'snapshot') cols++; // Add Location column
return cols;
})()} class="p-0.5 px-1.5 text-xs font-medium text-gray-500 dark:text-gray-400"></td>
})()} class="p-0.5 px-1.5 text-xs font-medium text-gray-600 dark:text-gray-400 whitespace-nowrap">
{group.label} ({group.items.length})
</td>
</tr>
<For each={group.items}>
{(item) => (