1655-hide-rooms-filters-with-7-rooms (#1656)

* ui(chat_list_body): hide filters if < 7 rooms

* generated

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: ggurdin <46800240+ggurdin@users.noreply.github.com>
This commit is contained in:
wcjord 2025-02-03 12:29:49 -05:00 committed by GitHub
parent d773347d6e
commit 6dd984a23b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -170,7 +170,16 @@ class ChatListViewBody extends StatelessWidget {
),
),
),
if (client.rooms.isNotEmpty && !controller.isSearchMode)
// #Pangea
if (!controller.isSearchMode)
// if (client.rooms.isNotEmpty && !controller.isSearchMode)
// let's simplify this UI while the user has less chat than
// can fill this view
if (client.rooms.length <= 7 || controller.isSearchMode)
const SizedBox(height: 8),
if (client.rooms.length > 7 && !controller.isSearchMode)
// Pangea#
SizedBox(
height: 64,
child: ListView(