feat(weather-widget): do not round temperature

This commit is contained in:
ItzCrazyKns
2025-12-02 11:49:37 +05:30
parent 41c879cd86
commit 33c8f454a3

View File

@@ -305,7 +305,7 @@ const Weather = ({
<div> <div>
<div className="flex items-baseline gap-1"> <div className="flex items-baseline gap-1">
<span className="text-4xl font-bold drop-shadow-md"> <span className="text-4xl font-bold drop-shadow-md">
{Math.round(current.temperature_2m)}° {current.temperature_2m}°
</span> </span>
<span className="text-lg">F C</span> <span className="text-lg">F C</span>
</div> </div>
@@ -316,8 +316,7 @@ const Weather = ({
</div> </div>
<div className="text-right"> <div className="text-right">
<p className="text-xs font-medium opacity-90"> <p className="text-xs font-medium opacity-90">
{Math.round(daily.temperature_2m_max[0])}°{' '} {daily.temperature_2m_max[0]}° {daily.temperature_2m_min[0]}°
{Math.round(daily.temperature_2m_min[0])}°
</p> </p>
</div> </div>
</div> </div>