Skip to content
This repository has been archived by the owner on Feb 17, 2025. It is now read-only.

Commit

Permalink
fix: Fixed comment bubble cluster width
Browse files Browse the repository at this point in the history
Fixed comment bubbles so that the comment bubble sizes do not use the longest comment width in the cluster
  • Loading branch information
DanielBohme committed Sep 18, 2023
1 parent dde35c9 commit 9c8afbd
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ const TimeStamp = styled.div`
}
`

const SubContainer = styled.div`
display: flex;
flex-direction: column;
`

interface ClusteredMessagesProps {
}

Expand Down Expand Up @@ -110,7 +115,7 @@ const ClusteredMessages: FC<ClusteredMessagesProps> = () => {
<Typography variant="meta">{formatDate(cluster.meta.createdDate)}</Typography>
</TimeStamp>
</Header>
<div>
<SubContainer>
{cluster.messages.map((message, messageIndex) => (
<>
{message.isEdited && (
Expand All @@ -128,7 +133,7 @@ const ClusteredMessages: FC<ClusteredMessagesProps> = () => {
/>
</>
))}
</div>
</SubContainer>
</Container>
))}
</>
Expand Down

0 comments on commit 9c8afbd

Please sign in to comment.