make sidebar auto collapse when selecting a room on the mobile layout

This commit is contained in:
Henry Hiles 2026-03-24 16:45:25 -04:00
commit b387f0755a
Signed by: Henry-Hiles
SSH key fingerprint: SHA256:VKQUdS31Q90KvX7EkKMHMBpUspcmItAh86a+v7PGiIs
2 changed files with 10 additions and 6 deletions

View file

@ -16,7 +16,7 @@ class ChatPage extends ConsumerWidget {
body: Builder(
builder: (context) => Row(
children: [
if (isDesktop) Sidebar(),
if (isDesktop) Sidebar(isDesktop: isDesktop),
Expanded(
child: RoomChat(
isDesktop: isDesktop,
@ -26,7 +26,7 @@ class ChatPage extends ConsumerWidget {
],
),
),
drawer: isDesktop ? null : Sidebar(),
drawer: isDesktop ? null : Sidebar(isDesktop: isDesktop),
);
},
);