add slight padding above browse space fab

This commit is contained in:
Henry Hiles 2026-10-15 22:40:55 -04:00
commit 659e76b8f8
Signed by: Henry-Hiles
SSH key fingerprint: SHA256:VKQUdS31Q90KvX7EkKMHMBpUspcmItAh86a+v7PGiIs

View file

@ -284,6 +284,8 @@ class const RoomsPane({super.key}) extends ConsumerWidget {
), ),
], ],
), ),
child: Padding(
padding: const .only(top: 4),
child: NavigationRailM3E( child: NavigationRailM3E(
fab: selectedSpace.room == null fab: selectedSpace.room == null
? null ? null
@ -324,12 +326,14 @@ class const RoomsPane({super.key}) extends ConsumerWidget {
if (subSpace.room.metadata?.avatar != null) if (subSpace.room.metadata?.avatar != null)
AvatarOrHash( AvatarOrHash(
subSpace.room.metadata?.avatar, subSpace.room.metadata?.avatar,
subSpace.room.metadata?.name ?? "Unnamed Room", subSpace.room.metadata?.name ??
"Unnamed Room",
dimension: 16, dimension: 16,
), ),
Flexible( Flexible(
child: Text( child: Text(
subSpace.room.metadata?.name ?? "Unnamed Space", subSpace.room.metadata?.name ??
"Unnamed Space",
maxLines: 1, maxLines: 1,
overflow: .ellipsis, overflow: .ellipsis,
), ),
@ -346,7 +350,8 @@ class const RoomsPane({super.key}) extends ConsumerWidget {
onDestinationSelected: (value) { onDestinationSelected: (value) {
ref ref
.read( .read(
KeyController.provider(KeyController.roomKey).notifier, KeyController.provider(KeyController.roomKey)
.notifier,
) )
.set(selectedSpace.allChildRooms[value].metadata?.id); .set(selectedSpace.allChildRooms[value].metadata?.id);
if (Navigator.of(context).canPop()) { if (Navigator.of(context).canPop()) {
@ -354,6 +359,7 @@ class const RoomsPane({super.key}) extends ConsumerWidget {
} }
}, },
), ),
),
); );
}, },
), ),