Trim description clutter: strip URLs in cards, tighter preview in Watch
- VideoCard list variant: strip URLs/affiliate links before rendering, collapse to 1 line (was 2 lines of raw text including https:// spam) - DescriptionBox collapsed preview: 2 lines / 200 chars before "Show more" (was 4 lines — too much affiliate crap before you can dismiss it) - Full description still shown when expanded in Watch view Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -66,8 +66,8 @@ function linkify(text) {
|
||||
function DescriptionBox({ text }) {
|
||||
const [expanded, setExpanded] = useState(false);
|
||||
const lines = text.split("\n");
|
||||
const hasMore = lines.length > 4 || text.length > 300;
|
||||
const displayed = expanded ? text : lines.slice(0, 4).join("\n") + (hasMore ? "…" : "");
|
||||
const hasMore = lines.length > 2 || text.length > 200;
|
||||
const displayed = expanded ? text : lines.slice(0, 2).join("\n") + (hasMore ? "…" : "");
|
||||
|
||||
return (
|
||||
<div
|
||||
|
||||
Reference in New Issue
Block a user