File tree Expand file tree Collapse file tree
src/renderer/src/components/app/setting/content/background/images Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -30,12 +30,18 @@ const SettingBackgroundImage = memo(
3030 ) }
3131 whileHover = { { scale : 0.95 } }
3232 whileTap = { { scale : 0.85 } }
33+ style = { {
34+ aspectRatio : 1 ,
35+ } }
3336 >
3437 < ImageWithFallback
3538 src = { src }
36- alt = ""
37- loading = "lazy"
39+ alt = "thumnail"
3840 className = "w-full h-full object-cover blur-sm pointer-events-none"
41+ width = "200"
42+ height = "200"
43+ decoding = "async"
44+ loading = "lazy"
3945 onLoad = { e => e . currentTarget . classList . remove ( "blur-sm" ) }
4046 />
4147 </ motion . div >
Original file line number Diff line number Diff line change @@ -60,9 +60,12 @@ const SettingBackgroundImagePreview = memo(
6060 key = { selectedIndex }
6161 src = { backgroundList [ selectedIndex ] }
6262 alt = "background-preview"
63- className = "max-w-full max-h-full object-contain rounded-lg shadow-xl blur-sm"
64- style = { { transformStyle : "preserve-3d" } }
63+ className = "max-w-full max-h-full w-full h-full object-contain rounded-lg shadow-xl blur-sm"
64+ style = { {
65+ transformStyle : "preserve-3d" ,
66+ } }
6567 loading = "lazy"
68+ decoding = "async"
6669 onLoad = { e => e . currentTarget . classList . remove ( "blur-sm" ) }
6770 initial = { {
6871 scale : 0.6 ,
@@ -82,9 +85,16 @@ const SettingBackgroundImagePreview = memo(
8285 filter : "blur(5px)" ,
8386 rotateX : - 50 ,
8487 } }
85- transition = { { duration : 0.5 , ease : "easeInOut" } }
86- whileHover = { { scale : 0.97 } }
87- whileTap = { { scale : 0.9 } }
88+ transition = { {
89+ duration : 0.5 ,
90+ ease : "easeInOut" ,
91+ } }
92+ whileHover = { {
93+ scale : 0.97 ,
94+ } }
95+ whileTap = { {
96+ scale : 0.9 ,
97+ } }
8898 />
8999 </ AnimatePresence >
90100 </ div >
You can’t perform that action at this time.
0 commit comments