mirror of
https://github.com/DI0IK/homepage-plus.git
synced 2025-07-07 06:08:48 +00:00
rework the weather widget label
This commit is contained in:
parent
688caa02c5
commit
82b0ef38fd
1 changed files with 4 additions and 2 deletions
|
@ -31,15 +31,17 @@ export default function Weather({ options }) {
|
||||||
return (
|
return (
|
||||||
<div className=" flex flex-col">
|
<div className=" flex flex-col">
|
||||||
<div className="flex flex-row items-center justify-end">
|
<div className="flex flex-row items-center justify-end">
|
||||||
|
<div className="flex flex-col items-center">
|
||||||
<Icon condition={data.current.condition.code} timeOfDay={data.current.is_day ? "day" : "night"} />
|
<Icon condition={data.current.condition.code} timeOfDay={data.current.is_day ? "day" : "night"} />
|
||||||
|
</div>
|
||||||
<div className="flex flex-col ml-3 text-left">
|
<div className="flex flex-col ml-3 text-left">
|
||||||
<span className="text-theme-800 dark:text-theme-200 text-sm">
|
<span className="text-theme-800 dark:text-theme-200 text-sm">
|
||||||
|
{options.label && `${options.label}, `}
|
||||||
{options.units === "metric" ? data.current.temp_c : data.current.temp_f}°
|
{options.units === "metric" ? data.current.temp_c : data.current.temp_f}°
|
||||||
</span>
|
</span>
|
||||||
<span className="text-theme-800 dark:text-theme-200 text-xs">{data.current.condition.text}</span>
|
<span className="text-theme-800 dark:text-theme-200 text-xs">{data.current.condition.text}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{options.label && <div className="text-right text-theme-800 dark:text-theme-200 text-xs">{options.label}</div>}
|
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue