Adjust unread badge height to compensate for activity header height (#4213)

* Adjust unread badge height to compensate for activity header height

* Limit height instead of hardcoding values
This commit is contained in:
Kelrap 2025-10-03 11:51:22 -04:00 committed by GitHub
parent 027a1b7c41
commit 5d4d51b10b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -243,11 +243,21 @@ class ChatView extends StatelessWidget {
.where(
(syncUpdate) => syncUpdate.hasRoomUpdate,
),
builder: (context, _) => UnreadRoomsBadge(
filter: (r) => r.id != controller.roomId,
badgePosition:
BadgePosition.topEnd(end: 8, top: 4),
child: const Center(child: BackButton()),
// #Pangea
// builder: (context, _) => UnreadRoomsBadge(
builder: (context, _) => Center(
child: SizedBox(
height: kToolbarHeight,
child: UnreadRoomsBadge(
// Pangea#
filter: (r) => r.id != controller.roomId,
badgePosition: BadgePosition.topEnd(
end: 8,
top: 4,
),
child: const Center(child: BackButton()),
),
),
),
),
titleSpacing: FluffyThemes.isColumnMode(context) ? 24 : 0,