ignore pointer for reply preview

This commit is contained in:
Henry Hiles 2026-05-20 10:22:09 -04:00
commit 5a9e29be34
Signed by: Henry-Hiles
SSH key fingerprint: SHA256:VKQUdS31Q90KvX7EkKMHMBpUspcmItAh86a+v7PGiIs

View file

@ -150,7 +150,10 @@ class EventRenderer extends ConsumerWidget {
), ),
)) { )) {
AsyncData(:final value?) || AsyncData(:final value?) ||
AsyncLoading(:final value?) => Row( AsyncLoading(
:final value?,
) => IgnorePointer(
child: Row(
spacing: 8, spacing: 8,
children: [ children: [
MessageAvatar(value, height: 24), MessageAvatar(value, height: 24),
@ -158,8 +161,9 @@ class EventRenderer extends ConsumerWidget {
child: MessageDisplayname( child: MessageDisplayname(
value, value,
style: TextStyle( style: TextStyle(
color: color: theme
theme.colorScheme.primary, .colorScheme
.primary,
fontWeight: FontWeight.bold, fontWeight: FontWeight.bold,
), ),
), ),
@ -173,6 +177,7 @@ class EventRenderer extends ConsumerWidget {
), ),
], ],
), ),
),
AsyncError _ => Text( AsyncError _ => Text(
"An error occurred while fetching the reply", "An error occurred while fetching the reply",
style: errorStyle, style: errorStyle,