fix list view on ab when id panel
Signed-off-by: Sahil Yeole <sahilyeole93@gmail.com>
This commit is contained in:
parent
8fe64755ec
commit
c522987b6f
@ -191,14 +191,15 @@ class _PeersViewState extends State<_PeersView> with WindowListener {
|
|||||||
);
|
);
|
||||||
final windowWidth = MediaQuery.of(context).size.width;
|
final windowWidth = MediaQuery.of(context).size.width;
|
||||||
final model = Provider.of<PeerTabModel>(context);
|
final model = Provider.of<PeerTabModel>(context);
|
||||||
|
final hideAbTagsPanel = bind.mainGetLocalOption(key: "hideAbTagsPanel").isNotEmpty;
|
||||||
return isDesktop
|
return isDesktop
|
||||||
? Obx(
|
? Obx(
|
||||||
() => SizedBox(
|
() => SizedBox(
|
||||||
width: peerCardUiType.value != PeerUiType.list
|
width: peerCardUiType.value != PeerUiType.list
|
||||||
? 220
|
? 220
|
||||||
: model.currentTab == PeerTabIndex.group.index?
|
: model.currentTab == PeerTabIndex.group.index || (model.currentTab == PeerTabIndex.ab.index && !hideAbTagsPanel)
|
||||||
windowWidth - 390 :
|
? windowWidth - 390 :
|
||||||
windowWidth - 227,
|
windowWidth - 227,
|
||||||
height:
|
height:
|
||||||
peerCardUiType.value == PeerUiType.grid ? 140 : peerCardUiType.value != PeerUiType.list ? 42 : 45,
|
peerCardUiType.value == PeerUiType.grid ? 140 : peerCardUiType.value != PeerUiType.list ? 42 : 45,
|
||||||
child: visibilityChild,
|
child: visibilityChild,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user