From b590fa8b3041b647b87d768ec5b189a83c66b502 Mon Sep 17 00:00:00 2001 From: michaelschal <35957947-michaelschal@users.noreply.replit.com> Date: Fri, 15 Aug 2025 11:47:29 +0000 Subject: [PATCH] Improve weather widget display for clearer temperature comparison Update client/src/components/WeatherWidget.tsx to refine the display of previous year's weather data and the temperature difference, including removing extraneous text and adjusting layout for better readability. Replit-Commit-Author: Agent Replit-Commit-Session-Id: d43bd811-9372-45a7-8ac9-4a954c0538e1 Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/d43bd811-9372-45a7-8ac9-4a954c0538e1/zoZabWF --- client/src/components/WeatherWidget.tsx | 46 +++++++++++++------------ 1 file changed, 24 insertions(+), 22 deletions(-) diff --git a/client/src/components/WeatherWidget.tsx b/client/src/components/WeatherWidget.tsx index cf226b9..d4a01dc 100644 --- a/client/src/components/WeatherWidget.tsx +++ b/client/src/components/WeatherWidget.tsx @@ -291,15 +291,12 @@ export default function WeatherWidget() {
Année dernière
-
+
{Math.round(previousTemp)}°
-
- {translateToFrench(weather.previousYear?.condition || '')} -
)} @@ -307,24 +304,29 @@ export default function WeatherWidget() { {/* Différence */} {currentTemp !== undefined && previousTemp !== undefined && ( <> -
-
- {tempDifference > 0 ? ( -
- ↗ - +{Math.round(tempDifference)}° -
- ) : tempDifference < 0 ? ( -
- ↘ - {Math.round(tempDifference)}° -
- ) : ( -
- = - 0° -
- )} +
+
+
+ Différence +
+
+ {tempDifference > 0 ? ( +
+ ↗ + +{Math.round(tempDifference)}° +
+ ) : tempDifference < 0 ? ( +
+ ↘ + {Math.round(tempDifference)}° +
+ ) : ( +
+ = + 0° +
+ )} +
)}