From 0ad5dea1dff2e117dff14401b15a854854bb6179 Mon Sep 17 00:00:00 2001 From: Priyanshubhartistm Date: Fri, 10 Apr 2026 20:33:34 +0530 Subject: [PATCH 1/3] feat(room-item): raise limits for linked messages --- src/app/components/RoomItemContent.svelte | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/app/components/RoomItemContent.svelte b/src/app/components/RoomItemContent.svelte index 880cbcd4..52f8c9a6 100644 --- a/src/app/components/RoomItemContent.svelte +++ b/src/app/components/RoomItemContent.svelte @@ -10,12 +10,14 @@ const props: ComponentProps = $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)
{#if path && !isMobile} - + {:else} -- 2.52.0 From c129bf70bcc2a4f6b96ccfd41c1d4110a48920a7 Mon Sep 17 00:00:00 2001 From: Priyanshubhartistm Date: Fri, 10 Apr 2026 20:34:16 +0530 Subject: [PATCH 2/3] feat(room-item): apply limits to inline messages --- src/app/components/RoomItemContent.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/components/RoomItemContent.svelte b/src/app/components/RoomItemContent.svelte index 52f8c9a6..6874413e 100644 --- a/src/app/components/RoomItemContent.svelte +++ b/src/app/components/RoomItemContent.svelte @@ -20,6 +20,6 @@ {:else} - + {/if}
-- 2.52.0 From 1116e74dd1812e93e14c41e78478f79ca45552da Mon Sep 17 00:00:00 2001 From: Priyanshubhartistm Date: Fri, 10 Apr 2026 20:35:36 +0530 Subject: [PATCH 3/3] refactor(room-item): name truncation thresholds --- src/app/components/RoomItemContent.svelte | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/app/components/RoomItemContent.svelte b/src/app/components/RoomItemContent.svelte index 6874413e..bc91b601 100644 --- a/src/app/components/RoomItemContent.svelte +++ b/src/app/components/RoomItemContent.svelte @@ -8,10 +8,14 @@ import {getRoomItemPath} from "@app/util/routes" const props: ComponentProps = $props() + const MESSAGE_MIN_LENGTH = 5000 + const MESSAGE_MAX_LENGTH = 5500 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) + const minLength = + props.minLength ?? (props.event.kind === MESSAGE ? MESSAGE_MIN_LENGTH : undefined) + const maxLength = + props.maxLength ?? (props.event.kind === MESSAGE ? MESSAGE_MAX_LENGTH : undefined)
-- 2.52.0