diff --git a/Phone App/lib/screens/charging_screen.dart b/Phone App/lib/screens/charging_screen.dart index 755b16a..601ec0a 100644 --- a/Phone App/lib/screens/charging_screen.dart +++ b/Phone App/lib/screens/charging_screen.dart @@ -461,13 +461,20 @@ class _FoldCard extends StatelessWidget { style: const TextStyle(fontSize: 15, fontWeight: FontWeight.w600)), ), if (badge != null) ...[badge!, const SizedBox(width: 8)], - Icon(open ? Icons.expand_more : Icons.chevron_right, - size: 20, color: DriverVault.muted(context)), ], ), ), ), if (action != null) action!, + // The fold arrow belongs hard against the right edge, past the + // action, so a card with a header button is not the one whose + // arrow sits somewhere else. It folds the card like the heading. + GestureDetector( + behavior: HitTestBehavior.opaque, + onTap: onToggle, + child: Icon(open ? Icons.expand_more : Icons.chevron_right, + size: 20, color: DriverVault.muted(context)), + ), ], ), if (open) ...children, diff --git a/Web App/web/src/views/Charging.vue b/Web App/web/src/views/Charging.vue index f0c9db0..fa159ad 100644 --- a/Web App/web/src/views/Charging.vue +++ b/Web App/web/src/views/Charging.vue @@ -1687,12 +1687,18 @@ onMounted(async () => { @dragover.prevent @drop.prevent="commitCardOrder" > +