Skip to content

Commit

Permalink
[PAY-3483] Update 'ChatListBlastItem' UI on smaller screens (#10057)
Browse files Browse the repository at this point in the history
Co-authored-by: Farid Salau <farid@Mac.attlocal.net>
  • Loading branch information
faridsalau and Farid Salau authored Oct 15, 2024
1 parent 058e233 commit 6401b5c
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
18 changes: 14 additions & 4 deletions packages/web/src/pages/chat-page/components/ChatListBlastItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,20 +41,30 @@ export const ChatListBlastItem = (props: ChatListBlastItemProps) => {
onClick={handleClick}
className={cn(styles.root, { [styles.active]: isCurrentChat })}
>
<Flex row gap='s' w='100%'>
<Flex row gap='s' w='100%' className={styles.headingContainer}>
<IconTowerBroadcast size='l' color='default' />
<Box css={{ flexShrink: 0 }}>
<Box css={{ flexShrink: 0 }} className={styles.messagePreview}>
<Text size='l' strength='strong'>
{chatBlastTitle}
</Text>
</Box>
{contentTitle ? (
<Text size='l' color='subdued' ellipses css={{ display: 'block' }}>
<Text
size='l'
color='subdued'
ellipses
css={{ display: 'block' }}
className={styles.messagePreview}
>
{contentTitle}
</Text>
) : null}
</Flex>
<Flex justifyContent='space-between' w='100%'>
<Flex
justifyContent='space-between'
w='100%'
className={styles.messagePreview}
>
<Text variant='label' textTransform='capitalize' color='subdued'>
{messages.audience}
</Text>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@
}

@media (max-width: 1080px) {
.headingContainer {
justify-content: center;
}

.messagePreview,
.userText,
.unreadIndicatorTag {
Expand Down

0 comments on commit 6401b5c

Please sign in to comment.