optimize style of peer card

Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
21pages
2022-08-24 11:01:58 +08:00
parent 7c9f799f05
commit bb64690ac9
8 changed files with 363 additions and 310 deletions

View File

@@ -100,10 +100,10 @@ class _PeerWidgetState extends State<_PeerWidget> with WindowListener {
offstage: super.widget._offstageFunc(peer),
child: Obx(
() => Container(
width: 225,
width: 220,
height: peerCardUiType.value == PeerUiType.grid
? 150
: 50,
? 140
: 42,
child: VisibilityDetector(
key: Key('${peer.id}'),
onVisibilityChanged: (info) {