From 2af401c14415d6f2ddac73b42e5bdde9740f9355 Mon Sep 17 00:00:00 2001 From: Douglas Fabris Date: Thu, 14 Dec 2023 12:41:35 -0300 Subject: [PATCH] chore: `Usercard` small visual changes (#31242) --- .../client/components/UserCard/UserCard.tsx | 20 ++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/apps/meteor/client/components/UserCard/UserCard.tsx b/apps/meteor/client/components/UserCard/UserCard.tsx index 83edd9e3d8c..5678f360af3 100644 --- a/apps/meteor/client/components/UserCard/UserCard.tsx +++ b/apps/meteor/client/components/UserCard/UserCard.tsx @@ -1,5 +1,5 @@ import { css } from '@rocket.chat/css-in-js'; -import { Box, IconButton, Skeleton } from '@rocket.chat/fuselage'; +import { Box, Button, IconButton, Skeleton } from '@rocket.chat/fuselage'; import { useTranslation } from '@rocket.chat/ui-contexts'; import type { ReactNode, ComponentProps, MouseEvent } from 'react'; import React, { forwardRef } from 'react'; @@ -69,7 +69,7 @@ const UserCard = forwardRef(function UserCard( const isLayoutEmbedded = useEmbeddedLayout(); return ( - + {!isLoading && username ? ( @@ -88,7 +88,7 @@ const UserCard = forwardRef(function UserCard( )} - + {isLoading ? : } {nickname && ( @@ -113,13 +113,15 @@ const UserCard = forwardRef(function UserCard( {typeof bio === 'string' ? : bio} )} - {!isLoading && open && !isLayoutEmbedded && {t('See_full_profile')}} + {!isLoading && open && !isLayoutEmbedded && ( +
+ +
+ )}
- {onClose && ( - - - - )} + {onClose && }
); });