refactor image loading

This commit is contained in:
Kentai Radiquum 2025-01-31 23:22:19 +05:00
parent a836d24d9f
commit 889c8c0d37
Signed by: Radiquum
GPG key ID: 858E8EE696525EED
6 changed files with 86 additions and 77 deletions

View file

@ -1,5 +1,4 @@
export default function Placeholder(props: {
idx: string | number;
isMobileHidden?: boolean;
}) {
return (
@ -10,7 +9,7 @@ export default function Placeholder(props: {
}`}
>
<div
id={`placeholder__image-${props.idx}-loader`}
data-type="placeholder__image__loader"
className="w-full h-full absolute inset-0 bg-gray-400 opacity-30 animate-pulse z-[3]"
></div>
</a>