mirror of
https://github.com/wah-su/wahs.wah.su.git
synced 2025-09-14 18:33:50 +05:00
refactor image loading
This commit is contained in:
parent
a836d24d9f
commit
889c8c0d37
6 changed files with 86 additions and 77 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue