diff --git a/net/web/src/session/cards/Cards.jsx b/net/web/src/session/cards/Cards.jsx index 4122eea5..6794425d 100644 --- a/net/web/src/session/cards/Cards.jsx +++ b/net/web/src/session/cards/Cards.jsx @@ -74,7 +74,7 @@ export function Cards({ closeCards, openContact, openChannel, openListing }) { renderItem={item => ( actions.resync(item.cardId)} open={() => openContact(item.guid)} message={() => message(item.cardId)} - call={() => call(item)} /> + call={() => call(item)} display={state.display} /> )} /> )} { state.cards.length === 0 && ( diff --git a/net/web/src/session/cards/cardItem/CardItem.jsx b/net/web/src/session/cards/cardItem/CardItem.jsx index a4fd56fc..c0246ed3 100644 --- a/net/web/src/session/cards/cardItem/CardItem.jsx +++ b/net/web/src/session/cards/cardItem/CardItem.jsx @@ -6,7 +6,7 @@ import { Logo } from 'logo/Logo'; import { Tooltip } from 'antd'; import { MessageOutlined, PhoneOutlined, ExclamationCircleOutlined } from '@ant-design/icons'; -export function CardItem({ item, tooltip, enableIce, resync, open, call, message }) { +export function CardItem({ item, tooltip, enableIce, resync, open, call, message, display }) { const onResync = (e) => { e.stopPropagation(); @@ -43,7 +43,19 @@ export function CardItem({ item, tooltip, enableIce, resync, open, call, message )} - { item.status === 'connected' && ( + { item.status === 'connected' && display === 'small' && ( + +
+ +
+ { enableIce && ( +
+ +
+ )} +
+ )} + { item.status !== 'connected' && display !== 'small' && (