From 6065207c67f9d42376a6854e3011542b8dd42b6d Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 23 Jul 2026 18:11:38 +0000 Subject: [PATCH] Stop truncating quote-tweet text, keep media at thumbnail size MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit extractQuotedTweet() was capping the quoted tweet's text at 240 characters via toSummary(); it now keeps the full cleaned text, matching the outer tweet's own body which was never truncated. Dropped the matching -webkit-line-clamp: 3 on .quoted-text in TweetCard.svelte so the full text actually renders instead of being clipped after 3 lines. Media sizing (.quoted-img's 140px cap, the media grid's fixed cell heights) is unchanged — only text was meant to stay unconstrained. Co-Authored-By: Claude Sonnet 5 Claude-Session: https://claude.ai/code/session_014c1L8ghNBFjfiH64UMViP8 --- backend/src/ingestion/adapters/nitter.ts | 4 ++-- frontend/src/lib/components/TweetCard.svelte | 4 ---- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/backend/src/ingestion/adapters/nitter.ts b/backend/src/ingestion/adapters/nitter.ts index a13b3d1..1234ca8 100644 --- a/backend/src/ingestion/adapters/nitter.ts +++ b/backend/src/ingestion/adapters/nitter.ts @@ -11,7 +11,7 @@ import type { Source, TweetMediaItem, QuotedTweet } from '../../storage/db/types import type { SourceAdapter, FetchedItem } from './base.js'; import { logger } from '../../storage/db/logs.js'; import { getSettings } from '../../storage/db/settings.js'; -import { cleanHtml, toSummary } from '../clean.js'; +import { cleanHtml } from '../clean.js'; /** fxtwitter caps a tweet at 4 attached photos/videos/gifs, in tweet display order. */ const MAX_TWEET_MEDIA = 4; @@ -136,7 +136,7 @@ function extractQuotedTweet(descriptionHtml: string): QuotedTweet | null { return { authorName: authorMatch[1].trim(), authorHandle: authorMatch[2].trim(), - text: toSummary(cleanHtml(beforeFooter), 240), + text: cleanHtml(beforeFooter), imageUrl: extractImageUrl(inner), link: linkMatch[1] }; diff --git a/frontend/src/lib/components/TweetCard.svelte b/frontend/src/lib/components/TweetCard.svelte index 3435eda..1fb46f6 100644 --- a/frontend/src/lib/components/TweetCard.svelte +++ b/frontend/src/lib/components/TweetCard.svelte @@ -253,10 +253,6 @@ line-height: 1.45; color: var(--text-secondary); white-space: pre-line; - display: -webkit-box; - -webkit-line-clamp: 3; - -webkit-box-orient: vertical; - overflow: hidden; } .quoted-img { width: 100%;