Add minimal style for quotes of chat messages

This commit is contained in:
Jon Staab
2025-05-29 14:45:04 -07:00
parent 962ac7d80c
commit e0875eb9b9
4 changed files with 32 additions and 13 deletions
+10 -2
View File
@@ -40,6 +40,7 @@
showEntire?: boolean
hideMediaAtDepth?: number
expandMode?: string
minimalQuote?: boolean
depth?: number
url?: string
}
@@ -51,6 +52,7 @@
showEntire = $bindable(false),
hideMediaAtDepth = 1,
expandMode = "block",
minimalQuote = false,
depth = 0,
url,
}: Props = $props()
@@ -128,7 +130,7 @@
</div>
{:else}
<div
class="overflow-hidden text-ellipsis break-words"
class="flex flex-col overflow-hidden text-ellipsis break-words"
style={expandBlock ? "mask-image: linear-gradient(0deg, transparent 0px, black 100px)" : ""}>
{#each shortContent as parsed, i}
{#if isNewline(parsed) && !isBlock(i - 1)}
@@ -153,7 +155,13 @@
<ContentMention value={parsed.value} {url} />
{:else if isEvent(parsed) || isAddress(parsed)}
{#if isBlock(i)}
<ContentQuote {depth} {url} {hideMediaAtDepth} value={parsed.value} {event} />
<ContentQuote
{depth}
{url}
{hideMediaAtDepth}
value={parsed.value}
{event}
minimal={minimalQuote} />
{:else}
<Link
external