From 52903051f1bb2b69b3a4035564ceba92b78b63f0 Mon Sep 17 00:00:00 2001 From: Elias Bonnici Date: Thu, 2 May 2024 17:50:19 +0200 Subject: [PATCH] Change breakpoints for pinned OATH accounts --- lib/oath/views/account_helper.dart | 6 ++++-- lib/oath/views/account_list.dart | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/oath/views/account_helper.dart b/lib/oath/views/account_helper.dart index c82dfe87..5ea88f1e 100755 --- a/lib/oath/views/account_helper.dart +++ b/lib/oath/views/account_helper.dart @@ -26,7 +26,6 @@ import '../../app/shortcuts.dart'; import '../../app/state.dart'; import '../../core/state.dart'; import '../../widgets/circle_timer.dart'; -import '../../widgets/custom_icons.dart'; import '../features.dart' as features; import '../keys.dart' as keys; import '../models.dart'; @@ -90,7 +89,10 @@ class AccountHelper { ActionItem( key: keys.togglePinAction, feature: features.accountsPin, - icon: pinned ? pushPinStrokeIcon : const Icon(Symbols.push_pin), + icon: Icon( + Symbols.push_pin, + fill: pinned ? 1 : 0, + ), title: pinned ? l10n.s_unpin_account : l10n.s_pin_account, subtitle: l10n.l_pin_account_desc, intent: TogglePinIntent(credential), diff --git a/lib/oath/views/account_list.dart b/lib/oath/views/account_list.dart index a1983937..b29c57dd 100755 --- a/lib/oath/views/account_list.dart +++ b/lib/oath/views/account_list.dart @@ -34,7 +34,7 @@ class AccountList extends ConsumerWidget { builder: (context, constraints) { final width = constraints.maxWidth; int itemsPerRow = 1; - if (width <= 500) { + if (width <= 420) { // single column itemsPerRow = 1; } else if (width <= 620) {