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>
pull/1593/head
wcjord 9 months ago committed by GitHub
parent d773347d6e
commit 6dd984a23b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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(

Loading…
Cancel
Save