Skip to content

Commit 758ef49

Browse files
authored
bug: long links in chat wrap instead of stretching the panel (#869)
1 parent 373ea25 commit 758ef49

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎components/chat/ChatMessage.vue‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ import FiveStackToolTip from "~/components/FiveStackToolTip.vue";
117117
/>
118118
<p
119119
v-else-if="hasText"
120-
class="text-[13px] leading-snug break-words whitespace-pre-wrap"
120+
class="text-[13px] leading-snug break-words whitespace-pre-wrap [overflow-wrap:anywhere]"
121121
>
122122
<span
123123
><template v-for="(segment, index) in messageSegments" :key="index"

‎components/chat/ChatMessageActions.vue‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ async function deleteMessage() {
392392
<!-- The overlay hides the chat, so the line being removed is repeated
393393
here rather than left to memory. -->
394394
<blockquote
395-
class="line-clamp-3 whitespace-pre-wrap break-words rounded-md border border-border/60 bg-card/40 px-3 py-2 text-xs text-muted-foreground"
395+
class="line-clamp-3 whitespace-pre-wrap break-words [overflow-wrap:anywhere] rounded-md border border-border/60 bg-card/40 px-3 py-2 text-xs text-muted-foreground"
396396
>
397397
{{ chatMediaLabel(message, $t) }}
398398
</blockquote>

0 commit comments

Comments
 (0)