This commit is contained in:
Ren Amamiya
2023-10-09 11:30:52 +07:00
parent ced23341d2
commit 140b8a47bf
19 changed files with 105 additions and 171 deletions

View File

@@ -31,7 +31,9 @@ export function LinkPreview({ urls }: { urls: string[] }) {
<p className="text-sm text-white/50">
Can&apos;t fetch open graph, click to open webpage
</p>
<span className="text-sm leading-none text-white">{domain.hostname}</span>
<span className="text-sm leading-none text-zinc-900 dark:text-zinc-100">
{domain.hostname}
</span>
</div>
) : (
<>
@@ -46,15 +48,17 @@ export function LinkPreview({ urls }: { urls: string[] }) {
/>
)}
<div className="flex flex-col gap-1 border-t border-white/5 px-3 py-3">
<h5 className="line-clamp-1 text-base font-semibold text-white">
<h5 className="line-clamp-1 text-base font-semibold text-zinc-900 dark:text-zinc-100">
{data.title}
</h5>
{data.description && (
<p className="line-clamp-3 break-all text-sm text-white/80">
<p className="line-clamp-3 break-all text-sm text-zinc-500 dark:text-zinc-400">
{data.description}
</p>
)}
<span className="mt-2.5 text-sm text-white/80">{domain.hostname}</span>
<span className="mt-2.5 text-sm text-zinc-500 dark:text-zinc-400">
{domain.hostname}
</span>
</div>
</>
)}