Update bot chat block
This commit is contained in:
@@ -38,7 +38,10 @@ export default function BotMessageLine({ message, bot_name, at }: Props) {
|
|||||||
return (
|
return (
|
||||||
<Stack className="w-full min-w-0 gap-1.5! items-start max-w-full">
|
<Stack className="w-full min-w-0 gap-1.5! items-start max-w-full">
|
||||||
{message.reply_to ? (
|
{message.reply_to ? (
|
||||||
<MessageReplyQuote reply_to={message.reply_to} bot_name={bot_name} />
|
<MessageReplyQuote
|
||||||
|
reply_to={message.reply_to}
|
||||||
|
bot_name={bot_name}
|
||||||
|
/>
|
||||||
) : null}
|
) : null}
|
||||||
<Stack className="w-full gap-2.5! items-start break-words">
|
<Stack className="w-full gap-2.5! items-start break-words">
|
||||||
<Markdown
|
<Markdown
|
||||||
@@ -55,10 +58,12 @@ export default function BotMessageLine({ message, bot_name, at }: Props) {
|
|||||||
onReact={onReact}
|
onReact={onReact}
|
||||||
/>
|
/>
|
||||||
) : null}
|
) : null}
|
||||||
<Row className="gap-2! items-center">
|
<Row className="gap-3! items-center">
|
||||||
{message.needs_you ? <NeedsYouChip /> : null}
|
{message.needs_you ? <NeedsYouChip /> : null}
|
||||||
{at ? <GroupTimestamp at={at} /> : null}
|
{at ? <GroupTimestamp at={at} /> : null}
|
||||||
{can_speak ? <SpeakMessageButton message_id={Number(message.id)} /> : null}
|
{can_speak ? (
|
||||||
|
<SpeakMessageButton message_id={Number(message.id)} />
|
||||||
|
) : null}
|
||||||
<MessageActions message={message} />
|
<MessageActions message={message} />
|
||||||
</Row>
|
</Row>
|
||||||
</Stack>
|
</Stack>
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ export default function MessageActions({ message }: Props) {
|
|||||||
if (!message.id) return null;
|
if (!message.id) return null;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Row className="gap-1.5! items-center">
|
<Row className="gap-3! items-center">
|
||||||
<MessageActionButton
|
<MessageActionButton
|
||||||
title="Reply"
|
title="Reply"
|
||||||
aria_label="Reply to this message"
|
aria_label="Reply to this message"
|
||||||
|
|||||||
Reference in New Issue
Block a user