From 7c6858ec227a0c0eeb726b9069bcabc4108c9c24 Mon Sep 17 00:00:00 2001 From: Hamzat Victor Date: Wed, 22 Nov 2023 22:56:50 +0100 Subject: [PATCH] fix: improv layout & centering in Time widget(#59) The layout and centering in the Time widget have been improved. The time display is now centered horizontally, and the greeting text is also centered. This ensures a more visually balanced and appealing presentation. These changes enhance the user experience by providing a more aesthetically pleasing display of time and greetings. Fixes #59 --- src/components/inc/widgets/Time.tsx | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/src/components/inc/widgets/Time.tsx b/src/components/inc/widgets/Time.tsx index 0f46b28..c731498 100644 --- a/src/components/inc/widgets/Time.tsx +++ b/src/components/inc/widgets/Time.tsx @@ -25,7 +25,7 @@ const Time = () => { state.showTime, state.showGreeting, ], - shallow + shallow, ); const timeDate = new Date(time); useEffect(() => { @@ -61,7 +61,12 @@ const Time = () => { }} > {showTime && ( - + { {timeString} @@ -104,7 +111,11 @@ const Time = () => { )} {showGreeting && ( - + Good {getDaySegment(timeDate)}, {name} )}