From fbbdb4e131615f7c5fcf377352951b7ac06015b3 Mon Sep 17 00:00:00 2001 From: darken Date: Sun, 30 Aug 2026 08:12:23 +0200 Subject: [PATCH] ui(overview): Give the last known caption more room above At 4.dp the caption crowded the bottom edge of the battery surface it describes. 8.dp separates the two without pushing it far enough to read as its own block, which 12.dp (the gap used before the ANC selector) would. Both pod cards carry the caption, so both move together. --- .../java/eu/darken/capod/main/ui/overview/cards/DualPodsCard.kt | 2 +- .../eu/darken/capod/main/ui/overview/cards/SinglePodsCard.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/eu/darken/capod/main/ui/overview/cards/DualPodsCard.kt b/app/src/main/java/eu/darken/capod/main/ui/overview/cards/DualPodsCard.kt index 1efebaae..00010dcd 100644 --- a/app/src/main/java/eu/darken/capod/main/ui/overview/cards/DualPodsCard.kt +++ b/app/src/main/java/eu/darken/capod/main/ui/overview/cards/DualPodsCard.kt @@ -288,7 +288,7 @@ private fun ColumnScope.DualPodsCardExpanded( // Cached battery indicator if (device.isBatteryCached && !device.isLive) { - Spacer(modifier = Modifier.height(4.dp)) + Spacer(modifier = Modifier.height(8.dp)) Text( text = stringResource(R.string.battery_cached_label, device.cachedBatteryFormatted(now)), style = MaterialTheme.typography.bodySmall, diff --git a/app/src/main/java/eu/darken/capod/main/ui/overview/cards/SinglePodsCard.kt b/app/src/main/java/eu/darken/capod/main/ui/overview/cards/SinglePodsCard.kt index 2d974503..e611085a 100644 --- a/app/src/main/java/eu/darken/capod/main/ui/overview/cards/SinglePodsCard.kt +++ b/app/src/main/java/eu/darken/capod/main/ui/overview/cards/SinglePodsCard.kt @@ -322,7 +322,7 @@ private fun ColumnScope.SinglePodsCardExpanded( // Cached battery indicator if (device.isBatteryCached && !device.isLive) { - Spacer(modifier = Modifier.height(4.dp)) + Spacer(modifier = Modifier.height(8.dp)) Text( text = stringResource(R.string.battery_cached_label, device.cachedBatteryFormatted(now)), style = MaterialTheme.typography.bodySmall,