From c522987b6f4f65f10005b26920948505a873dad2 Mon Sep 17 00:00:00 2001 From: Sahil Yeole Date: Thu, 26 Oct 2023 05:16:27 +0530 Subject: [PATCH] fix list view on ab when id panel Signed-off-by: Sahil Yeole --- flutter/lib/common/widgets/peers_view.dart | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/flutter/lib/common/widgets/peers_view.dart b/flutter/lib/common/widgets/peers_view.dart index 48fced275..24949b94a 100644 --- a/flutter/lib/common/widgets/peers_view.dart +++ b/flutter/lib/common/widgets/peers_view.dart @@ -191,14 +191,15 @@ class _PeersViewState extends State<_PeersView> with WindowListener { ); final windowWidth = MediaQuery.of(context).size.width; final model = Provider.of(context); + final hideAbTagsPanel = bind.mainGetLocalOption(key: "hideAbTagsPanel").isNotEmpty; return isDesktop ? Obx( () => SizedBox( width: peerCardUiType.value != PeerUiType.list ? 220 - : model.currentTab == PeerTabIndex.group.index? - windowWidth - 390 : - windowWidth - 227, + : model.currentTab == PeerTabIndex.group.index || (model.currentTab == PeerTabIndex.ab.index && !hideAbTagsPanel) + ? windowWidth - 390 : + windowWidth - 227, height: peerCardUiType.value == PeerUiType.grid ? 140 : peerCardUiType.value != PeerUiType.list ? 42 : 45, child: visibilityChild,