184-message-truncation #186

Merged
hodlbod merged 3 commits from priyanshu_bharti/flotilla:184-message-truncation into dev 2026-04-10 16:37:24 +00:00
Showing only changes of commit 0ad5dea1df - Show all commits
+3 -1
View File
@@ -10,12 +10,14 @@
const props: ComponentProps<typeof NoteContent> = $props()
const path = getRoomItemPath(props.url!, props.event)
const minLength = props.minLength ?? (props.event.kind === MESSAGE ? 5000 : undefined)
const maxLength = props.maxLength ?? (props.event.kind === MESSAGE ? 5500 : undefined)
</script>
<div class={cx("text-sm", {"card2 card2-sm bg-alt": props.event.kind !== MESSAGE})}>
{#if path && !isMobile}
<Link href={path}>
<NoteContent {...props} />
<NoteContent {...props} {minLength} {maxLength} />
</Link>
{:else}
<NoteContent {...props} />