cleanup: lighten post gpu load
This commit is contained in:
1 parent
8644f3fff2
commit
28a2915abd
2 files changed
+8
-6
No files matched your search
@@ -115,13 +115,15 @@
|
|||||||
href={url}
|
href={url}
|
||||||
target="_blank"
|
target="_blank"
|
||||||
class="text-slate-900 dark:text-zinc-300 items-center
|
class="text-slate-900 dark:text-zinc-300 items-center
|
||||||
text-xs overflow-hidden max-w-full block flex-shrink"
|
text-xs overflow-hidden max-w-full block flex-shrink self-start w-max"
|
||||||
size="xs"
|
size="xs"
|
||||||
color="ghost"
|
color="ghost"
|
||||||
rounding="pill"
|
rounding="pill"
|
||||||
>
|
>
|
||||||
{#if richURL}
|
{#if richURL}
|
||||||
<div class="flex max-w-full overflow-hidden font-medium">
|
<div
|
||||||
|
class="flex max-w-full overflow-hidden font-medium self-start justify-self-start w-max"
|
||||||
|
>
|
||||||
{richURL.hostname}
|
{richURL.hostname}
|
||||||
{#if richURL.pathname != '/'}
|
{#if richURL.pathname != '/'}
|
||||||
<span
|
<span
|
||||||
|
|||||||
@@ -80,19 +80,19 @@
|
|||||||
>
|
>
|
||||||
{#if post.thumbnail_url || isImage(post.url)}
|
{#if post.thumbnail_url || isImage(post.url)}
|
||||||
<div class="relative overflow-hidden rounded-xl">
|
<div class="relative overflow-hidden rounded-xl">
|
||||||
<picture class="relative">
|
<picture>
|
||||||
<img
|
<img
|
||||||
src={optimizeImageURL(post.thumbnail_url || post.url || '', 256)}
|
src={optimizeImageURL(post.thumbnail_url || post.url || '', 256)}
|
||||||
loading="lazy"
|
loading="lazy"
|
||||||
class="object-cover overflow-hidden bg-slate-100 dark:bg-zinc-800 rounded-xl
|
class="object-cover relative overflow-hidden bg-slate-100 dark:bg-zinc-800 rounded-xl
|
||||||
transition-colors {size}"
|
transition-colors {size}"
|
||||||
alt={post.name}
|
alt={post.name}
|
||||||
class:blur-xl={blur}
|
class:blur-xl={blur}
|
||||||
/>
|
/>
|
||||||
{#if type != 'image'}
|
{#if type != 'image'}
|
||||||
<div
|
<div
|
||||||
class="absolute w-8 h-8 bottom-0 left-0 m-1 rounded-xl text-slate-800 dark:text-zinc-200
|
class="absolute w-8 h-8 m-1 bottom-0 left-0 rounded-xl text-slate-800 dark:text-zinc-200
|
||||||
backdrop-blur-sm bg-slate-25/75 dark:bg-zinc-900/75 border border-slate-200/75 dark:border-zinc-700/75
|
bg-slate-25 dark:bg-zinc-900 border border-slate-200 dark:border-zinc-700
|
||||||
grid place-items-center"
|
grid place-items-center"
|
||||||
>
|
>
|
||||||
<Icon
|
<Icon
|
||||||
|
|||||||
Reference in new issue
Block a user