fix(web): center unread badge on the menu icon, not the tap target

This commit is contained in:
vjrj 2026-07-15 12:47:27 +02:00
parent f10db611e8
commit eb8c75cf44

View file

@ -27,12 +27,10 @@ class HomeScreen extends StatelessWidget {
// Badge the hamburger so unread messages are visible from home, without // Badge the hamburger so unread messages are visible from home, without
// opening the drawer. Total count across conversations. // opening the drawer. Total count across conversations.
leading: Builder( leading: Builder(
builder: (context) => UnreadBadge( builder: (context) => IconButton(
child: IconButton( icon: const UnreadBadge(child: Icon(Icons.menu)),
icon: const Icon(Icons.menu), tooltip: MaterialLocalizations.of(context).openAppDrawerTooltip,
tooltip: MaterialLocalizations.of(context).openAppDrawerTooltip, onPressed: () => Scaffold.of(context).openDrawer(),
onPressed: () => Scaffold.of(context).openDrawer(),
),
), ),
), ),
), ),