Skip to content

An open-source remote desktop application designed for self-hosting, as an alternative to TeamViewer.

fix list view on ab when id panel

Sahil Yeolec522987b6f4f
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<PeerTabModel>(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,