Change breakpoints for pinned OATH accounts

This commit is contained in:
Elias Bonnici 2024-05-02 17:50:19 +02:00
parent 62729c2f68
commit 52903051f1
No known key found for this signature in database
GPG Key ID: 5EAC28EA3F980CCF
2 changed files with 5 additions and 3 deletions

View File

@ -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),

View File

@ -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) {