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:
parent
d773347d6e
commit
6dd984a23b
1 changed files with 10 additions and 1 deletions
|
|
@ -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…
Add table
Reference in a new issue