fix: optimize thumbnail image urls
This commit is contained in:
1 parent
62044ce3b7
commit
8b82a782f5
4 files changed
+21
-9
No files matched your search
@@ -21,7 +21,7 @@
|
||||
VideoCamera,
|
||||
type IconSource,
|
||||
} from 'svelte-hero-icons'
|
||||
import type { IframeType, MediaType } from '../helpers'
|
||||
import { optimizeImageURL, type IframeType, type MediaType } from '../helpers'
|
||||
import { userSettings } from '$lib/settings'
|
||||
|
||||
export let type: IframeType = 'none'
|
||||
@@ -102,7 +102,7 @@
|
||||
>
|
||||
{#if thumbnail}
|
||||
<img
|
||||
src={thumbnail}
|
||||
src={optimizeImageURL(thumbnail, 512)}
|
||||
class="absolute top-0 left-0 -z-10 brightness-[25%] w-full object-cover h-full"
|
||||
alt=""
|
||||
/>
|
||||
|
||||
Reference in new issue
Block a user