From 77e3214491f6e98bb89f3aca6df8a34026ba2459 Mon Sep 17 00:00:00 2001 From: michaelschal <35957947-michaelschal@users.noreply.replit.com> Date: Fri, 15 Aug 2025 09:23:17 +0000 Subject: [PATCH] Improve weather widget readability with clear daily and yearly temperature labels MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Refactor the WeatherWidget component to add "Aujourd'hui" and "Année dernière" headers for better temperature comparison, adjusting layout with flex and self-center properties. 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/g5c0JYM --- client/src/components/WeatherWidget.tsx | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/client/src/components/WeatherWidget.tsx b/client/src/components/WeatherWidget.tsx index 913c595..f356b7d 100644 --- a/client/src/components/WeatherWidget.tsx +++ b/client/src/components/WeatherWidget.tsx @@ -169,31 +169,31 @@ export default function WeatherWidget() { - {/* Températures actuelles */} -
+ {/* Températures avec en-têtes */} +
+
+ Aujourd'hui +
{currentTemp !== undefined ? `${Math.round(currentTemp)}°` : '--°'}
-
- Aujourd'hui -
{/* Comparaison avec l'an dernier */} {previousTemp !== undefined && ( <> -
-
+
+
+
+ Année dernière +
{Math.round(previousTemp)}°
-
- Année dernière -
{translateToFrench(weather.previousYear?.condition || '')}