remove old placeholder algorithm
All checks were successful
/ depoly (push) Successful in 1m21s

- TootPreviewCard and MediaAttachmentGrid
- the placeholder thing is now offloaded to the
  browser
This commit is contained in:
thislight 2024-10-27 23:57:10 +08:00
parent b9b2d40614
commit 66bded813d
No known key found for this signature in database
GPG key ID: A50F9451AC56A63E
3 changed files with 29 additions and 28 deletions

View file

@ -7,6 +7,7 @@ import {
createRenderEffect,
createSignal,
createEffect,
type Accessor,
} from "solid-js";
import tootStyle from "./toot.module.css";
import { formatRelative } from "date-fns";
@ -306,6 +307,8 @@ export function TootPreviewCard(props: {
crossOrigin="anonymous"
src={props.src.image!}
onLoad={onImgLoad}
width={props.src.width || undefined}
height={props.src.height || undefined}
loading="lazy"
/>
</Show>