File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,10 @@ if (project.data.status !== "dead") {
4545 <Picture
4646 loading =" eager"
4747 formats ={ [" avif" , " webp" ]}
48- class =" skeleton aspect-5/3 w-full object-cover lg:w-150 lg:rounded-2xl"
48+ class:list ={ [
49+ " aspect-5/3 w-full object-cover lg:w-150 lg:rounded-2xl" ,
50+ ! project .data .thumbnail .bg && " skeleton" ,
51+ ]}
4952 alt =" プロジェクト画像"
5053 src ={ project .data .thumbnail .src }
5154 position ={ project .data .thumbnail .position }
@@ -54,6 +57,7 @@ if (project.data.status !== "dead") {
5457 style ={ {
5558 " object-position" : project .data .thumbnail .position ,
5659 " object-fit" : project .data .thumbnail .fit ,
60+ " background-color" : project .data .thumbnail .bg || undefined ,
5761 }}
5862 />
5963 <div class =" container mx-auto mt-8 px-4 lg:mx-0 lg:flex-1" >
You can’t perform that action at this time.
0 commit comments