@@ -106,14 +106,14 @@ export function CurrentWeatherBox({ weather }: CurrentWeatherBoxProps) {
106
106
} ,
107
107
} ,
108
108
} }
109
- className = { `h-full col-span-2 p-5 shadow-lg bg-gradient-to-br ${ themeUtils . getCardBackground ( ) } backdrop-blur-sm rounded-xl` }
109
+ className = { `col-span-2 p-5 shadow-lg bg-gradient-to-br flex-2 ${ themeUtils . getCardBackground ( ) } backdrop-blur-sm rounded-xl` }
110
110
>
111
111
< div className = "flex flex-row-reverse items-start justify-between gap-4" >
112
112
< motion . div
113
113
className = "relative group"
114
114
variants = { fadeInUp }
115
- whileHover = { { scale : 1.1 } }
116
- transition = { { type : 'spring' , stiffness : 300 } }
115
+ whileHover = { { scale : 1.1 } }
116
+ transition = { { type : 'spring' , stiffness : 300 } }
117
117
>
118
118
< img
119
119
src = { weather . icon . url }
@@ -135,25 +135,27 @@ export function CurrentWeatherBox({ weather }: CurrentWeatherBoxProps) {
135
135
{ unitsFlag [ weatherSettings . temperatureUnit || 'metric' ] }
136
136
</ span >
137
137
</ motion . span >
138
+ </ div >
139
+ </ div >
138
140
139
- < motion . div
140
- variants = { fadeInUp }
141
- className = "flex flex-wrap items-center gap-2 mt-3"
141
+ < div className = "flex mt-1" >
142
+ < motion . div
143
+ variants = { fadeInUp }
144
+ className = "flex flex-wrap items-center gap-2 mt-3"
145
+ >
146
+ < div
147
+ className = { `px-3 py-1.5 flex items-center gap-2 text-sm font-medium rounded-full transition-all hover:shadow-md ${ getHumidityPillStyle ( ) } ` }
142
148
>
143
- < div
144
- className = { `px-3 py-1.5 flex items-center gap-2 text-sm font-medium rounded-full transition-all hover:shadow-md ${ getHumidityPillStyle ( ) } ` }
145
- >
146
- < WiHumidity size = { 20 } className = "flex-shrink-0" />
147
- < span > { weather . temperature . humidity } %</ span >
148
- </ div >
149
- < div
150
- className = { `px-3 py-1.5 flex items-center gap-2 text-sm font-medium rounded-full transition-all hover:shadow-md ${ getWindPillStyle ( ) } ` }
151
- >
152
- < WiStrongWind size = { 20 } className = "flex-shrink-0" />
153
- < span > { weather . temperature . wind_speed } m/s</ span >
154
- </ div >
155
- </ motion . div >
156
- </ div >
149
+ < WiHumidity size = { 20 } className = "flex-shrink-0" />
150
+ < span > { weather . temperature . humidity } %</ span >
151
+ </ div >
152
+ < div
153
+ className = { `px-3 py-1.5 flex items-center gap-2 text-sm font-medium rounded-full transition-all hover:shadow-md ${ getWindPillStyle ( ) } ` }
154
+ >
155
+ < WiStrongWind size = { 20 } className = "flex-shrink-0" />
156
+ < span > { weather . temperature . wind_speed } m/s</ span >
157
+ </ div >
158
+ </ motion . div >
157
159
</ div >
158
160
159
161
< motion . div
@@ -165,11 +167,11 @@ export function CurrentWeatherBox({ weather }: CurrentWeatherBoxProps) {
165
167
{ weather . ai ?. description && (
166
168
< motion . div
167
169
className = "absolute flex items-center gap-2 left-4 top-0 p-1.5"
168
- initial = { { opacity : 0 , x : - 10 } }
169
- animate = { { opacity : 1 , x : 0 } }
170
- transition = { { delay : 0.5 } }
170
+ initial = { { opacity : 0 , x : - 10 } }
171
+ animate = { { opacity : 1 , x : 0 } }
172
+ transition = { { delay : 0.5 } }
171
173
>
172
- < BsRobot className = { `text-xl ${ getAiIconStyle ( ) } ` } />
174
+ < BsRobot className = { `text-xl ${ getAiIconStyle ( ) } ` } />
173
175
</ motion . div >
174
176
) }
175
177
@@ -182,9 +184,9 @@ export function CurrentWeatherBox({ weather }: CurrentWeatherBoxProps) {
182
184
183
185
{ weather . ai ?. playlist && (
184
186
< motion . a
185
- initial = { { opacity : 0 , scale : 0.9 } }
186
- animate = { { opacity : 1 , scale : 1 } }
187
- transition = { { delay : 0.7 } }
187
+ initial = { { opacity : 0 , scale : 0.9 } }
188
+ animate = { { opacity : 1 , scale : 1 } }
189
+ transition = { { delay : 0.7 } }
188
190
href = { weather . ai . playlist }
189
191
target = "_blank"
190
192
rel = "noopener noreferrer"
0 commit comments