nicer / less intrusive mention style

This commit is contained in:
Henry Hiles 2026-09-17 14:27:51 -04:00
commit f23a35384d
Signed by: Henry-Hiles
SSH key fingerprint: SHA256:VKQUdS31Q90KvX7EkKMHMBpUspcmItAh86a+v7PGiIs

View file

@ -40,9 +40,7 @@ class const MentionChip(final String content, final String? roomId, {super.key})
// TODO: Handle summary // TODO: Handle summary
} }
}, },
child: IgnorePointer( child: Text(
child: Chip(
label: Text(
switch (data) { switch (data) {
RoomSummary summary => RoomSummary summary =>
(summary.name == null ? null : "#${summary.name}") ?? (summary.name == null ? null : "#${summary.name}") ??
@ -56,10 +54,7 @@ class const MentionChip(final String content, final String? roomId, {super.key})
}, },
style: .new( style: .new(
fontWeight: .bold, fontWeight: .bold,
color: Theme.of(context).colorScheme.onPrimary, color: Theme.of(context).colorScheme.primary,
),
),
backgroundColor: Theme.of(context).colorScheme.primary,
), ),
), ),
); );