mirror of
https://github.com/hzrd149/nostrudel.git
synced 2025-09-30 14:05:28 +02:00
add max height to stream chat messages
This commit is contained in:
@@ -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>
|
||||||
);
|
);
|
||||||
|
Reference in New Issue
Block a user