From add4adb5b9c39cb0bc9a75621283f9427917b69e Mon Sep 17 00:00:00 2001 From: Liam Fitzgerald Date: Thu, 4 Mar 2021 15:46:08 +1000 Subject: [PATCH] Participants: remove grid running into https://bugs.chromium.org/p/chromium/issues/detail?id=688640 on large groups Fixes urbit/landscape#513 --- .../landscape/components/Participants.tsx | 32 ++++++++----------- 1 file changed, 14 insertions(+), 18 deletions(-) diff --git a/pkg/interface/src/views/landscape/components/Participants.tsx b/pkg/interface/src/views/landscape/components/Participants.tsx index 5090968d2b..c7c60607cb 100644 --- a/pkg/interface/src/views/landscape/components/Participants.tsx +++ b/pkg/interface/src/views/landscape/components/Participants.tsx @@ -211,13 +211,7 @@ export function Participants(props: { onChange={onSearchChange} /> - + {filtered.map((cs, idx) => ( ))} - + ); @@ -312,10 +306,12 @@ function Participant(props: { return ( <> + + {avatar} - + {hasNickname && ( - + {contact.nickname} @@ -325,10 +321,12 @@ function Participant(props: { {cite(contact.patp)} + @@ -387,21 +385,19 @@ function Participant(props: { + - + ); } function BlankParticipant({ length }) { + const height = [`${length * 97}px`, `${length * 61}px`]; return ( - + ); }