- {#each ([['all', 'All'], ['snapshot', 'Snapshots'], ['base', 'Images']] as const) as [val, label]}
+ {#each ([['all', 'All', ''], ['snapshot', 'Snapshots', 'var(--color-accent)'], ['base', 'Images', 'var(--color-blue)']] as const) as [val, label, color]}
{/each}
@@ -322,14 +333,18 @@
{#each filteredSnapshots as snapshot, i (snapshot.name)}
- {@const stripeColor = snapshot.type === 'snapshot' ? 'bg-[var(--color-accent)]' : 'bg-[var(--color-blue)]'}
+ {@const isSnapshot = snapshot.type === 'snapshot'}
+ {@const typeColor = isSnapshot ? 'var(--color-accent)' : 'var(--color-blue)'}
-
+
+
+
{snapshot.name}
@@ -337,8 +352,8 @@
- {#if snapshot.type === 'snapshot'}
-
+ {#if isSnapshot}
+
{:else}
-
+
Image
@@ -356,7 +371,12 @@
{#if snapshot.type === 'snapshot' && snapshot.vcpus != null}
-
{snapshot.vcpus}
+
+
+ {snapshot.vcpus}
+
{:else}
—
{/if}
@@ -365,7 +385,12 @@
{#if snapshot.type === 'snapshot' && snapshot.memory_mb != null}
-
{snapshot.memory_mb} MB
+
+
+ {snapshot.memory_mb} MB
+
{:else}
—
{/if}
@@ -373,7 +398,7 @@
- {formatBytes(snapshot.size_bytes)}
+ {formatBytes(snapshot.size_bytes)}
@@ -694,4 +719,12 @@
.snapshot-row:hover .row-stripe {
transform: scaleY(1);
}
+
+ /* Type-tinted row hover backgrounds */
+ .snapshot-row.type-snapshot:hover {
+ background: rgba(94, 140, 88, 0.04);
+ }
+ .snapshot-row.type-image:hover {
+ background: rgba(90, 159, 212, 0.04);
+ }