fix mobile issues with popover

This commit is contained in:
Henry Hiles 2026-04-01 22:36:03 -04:00
commit a562d043a8
Signed by: Henry-Hiles
SSH key fingerprint: SHA256:VKQUdS31Q90KvX7EkKMHMBpUspcmItAh86a+v7PGiIs

View file

@ -13,18 +13,17 @@ class UserPopover extends ConsumerWidget {
Widget build(BuildContext context, WidgetRef ref) { Widget build(BuildContext context, WidgetRef ref) {
final theme = Theme.of(context); final theme = Theme.of(context);
final textTheme = theme.textTheme; final textTheme = theme.textTheme;
return IntrinsicWidth( return Column(
child: Column(
spacing: 16, spacing: 16,
crossAxisAlignment: CrossAxisAlignment.stretch, crossAxisAlignment: CrossAxisAlignment.stretch,
children: [ children: [
Row( Wrap(
alignment: WrapAlignment.center,
spacing: 16, spacing: 16,
mainAxisSize: MainAxisSize.min, runSpacing: 8,
children: [ children: [
AvatarOrHash(member.avatarUrl, member.displayName, height: 80), AvatarOrHash(member.avatarUrl, member.displayName, height: 80),
Expanded( Column(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
SelectableText( SelectableText(
@ -37,7 +36,7 @@ class UserPopover extends ConsumerWidget {
.watch(ProfileController.provider(member.userId)) .watch(ProfileController.provider(member.userId))
.betterWhen( .betterWhen(
loading: SizedBox.shrink, loading: SizedBox.shrink,
data: (profile) => Row( data: (profile) => Wrap(
spacing: 4, spacing: 4,
children: [ children: [
for (final pronoun in profile.pronouns.where( for (final pronoun in profile.pronouns.where(
@ -51,11 +50,11 @@ class UserPopover extends ConsumerWidget {
), ),
], ],
), ),
),
], ],
), ),
Row( Wrap(
spacing: 8, spacing: 8,
runSpacing: 8,
children: [ children: [
FilledButton.icon(onPressed: null, label: Text("Message")), FilledButton.icon(onPressed: null, label: Text("Message")),
FilledButton.icon( FilledButton.icon(
@ -82,10 +81,9 @@ class UserPopover extends ConsumerWidget {
), ),
), ),
), ),
].map((e) => Expanded(child: e)).toList(),
),
], ],
), ),
],
); );
} }
} }