add max height to stream chat messages

This commit is contained in:
hzrd149
2023-08-02 11:26:38 -05:00
parent cb780e19b2
commit 98a230d781

View File

@@ -17,14 +17,14 @@ function ChatMessage({ event, stream }: { event: NostrEvent; stream: ParsedStrea
<TrustProvider event={event}> <TrustProvider event={event}>
<Box ref={ref}> <Box ref={ref}>
<NoteZapButton note={event} size="xs" variant="ghost" float="right" ml="2" allowComment={false} /> <NoteZapButton note={event} size="xs" variant="ghost" float="right" ml="2" allowComment={false} />
<Text> <Box overflow="hidden" maxH="lg">
<UserAvatar pubkey={event.pubkey} size="xs" display="inline-block" mr="2" /> <UserAvatar pubkey={event.pubkey} size="xs" display="inline-block" mr="2" />
<Text as="span" fontWeight="bold" color={event.pubkey === stream.host ? "rgb(248, 56, 217)" : "cyan"}> <Text as="span" fontWeight="bold" color={event.pubkey === stream.host ? "rgb(248, 56, 217)" : "cyan"}>
<UserLink pubkey={event.pubkey} /> <UserLink pubkey={event.pubkey} />
{": "} {": "}
</Text> </Text>
<ChatMessageContent event={event} /> <ChatMessageContent event={event} />
</Text> </Box>
</Box> </Box>
</TrustProvider> </TrustProvider>
); );