feat: add border to image hash placeholder
This commit is contained in:
parent
41a65338b5
commit
526b64aec0
9 changed files with 28 additions and 26 deletions
|
|
@ -26,7 +26,7 @@ export default function FollowPack({ event, className }: { event: Event; classNa
|
|||
{image && (
|
||||
<Image
|
||||
image={{ url: image, pubkey: event.pubkey }}
|
||||
className="w-24 h-20 object-cover rounded-lg"
|
||||
className="w-24 h-20 object-cover"
|
||||
classNames={{
|
||||
wrapper: 'w-24 h-20 flex-shrink-0',
|
||||
errorPlaceholder: 'w-24 h-20'
|
||||
|
|
|
|||
|
|
@ -67,7 +67,7 @@ export default function LongFormArticlePreview({
|
|||
{metadata.image && autoLoadMedia && (
|
||||
<Image
|
||||
image={{ url: metadata.image, pubkey: event.pubkey }}
|
||||
className="rounded-lg aspect-[4/3] xl:aspect-video object-cover bg-foreground h-44"
|
||||
className="aspect-[4/3] xl:aspect-video object-cover bg-foreground h-44"
|
||||
hideIfError
|
||||
/>
|
||||
)}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue