design: improve post page
This commit is contained in:
1 parent
160622e760
commit
9bde0e5686
4 files changed
+63
-35
No files matched your search
@@ -21,7 +21,7 @@
|
||||
urlObj.searchParams.append('format', 'webp')
|
||||
urlObj.searchParams.append(
|
||||
'thumbnail',
|
||||
findClosestNumber(sizes, (res || width) * 1.5).toString(),
|
||||
findClosestNumber(sizes, (res || width) * 1.5).toString()
|
||||
)
|
||||
|
||||
return urlObj.toString()
|
||||
@@ -35,11 +35,11 @@
|
||||
|
||||
{#if optimizedURL}
|
||||
<img
|
||||
loading="lazy"
|
||||
src={optimizedURL}
|
||||
{alt}
|
||||
{width}
|
||||
{title}
|
||||
loading="lazy"
|
||||
class="aspect-square object-cover overflow-hidden {$$props.class} flex-shrink-0"
|
||||
style="width: {width}px; height: {width}px;"
|
||||
class:rounded-full={circle}
|
||||
|
||||
Reference in new issue
Block a user