From fdb4304d3885ba4649991a34bcb576e64195786b Mon Sep 17 00:00:00 2001 From: zv Date: Mon, 1 Jun 2026 20:04:26 +0200 Subject: [PATCH] style: refine hourly forecast scrollbar --- app/globals.css | 26 ++++++++++++++++++++++++++ components/forecast/forecast-panel.tsx | 2 +- 2 files changed, 27 insertions(+), 1 deletion(-) diff --git a/app/globals.css b/app/globals.css index a4ab8bb..d8edb93 100644 --- a/app/globals.css +++ b/app/globals.css @@ -50,4 +50,30 @@ select { .text-balance { text-wrap: balance; } + + .weather-scrollbar { + scrollbar-color: rgba(14, 116, 144, 0.55) rgba(255, 255, 255, 0.16); + scrollbar-width: thin; + } + + .weather-scrollbar::-webkit-scrollbar { + height: 0.55rem; + } + + .weather-scrollbar::-webkit-scrollbar-track { + border-radius: 9999px; + background: rgba(255, 255, 255, 0.16); + } + + .weather-scrollbar::-webkit-scrollbar-thumb { + border: 2px solid transparent; + border-radius: 9999px; + background: rgba(14, 116, 144, 0.55); + background-clip: padding-box; + } + + .weather-scrollbar::-webkit-scrollbar-thumb:hover { + background: rgba(8, 145, 178, 0.78); + background-clip: padding-box; + } } diff --git a/components/forecast/forecast-panel.tsx b/components/forecast/forecast-panel.tsx index 57314ba..36651e5 100644 --- a/components/forecast/forecast-panel.tsx +++ b/components/forecast/forecast-panel.tsx @@ -69,7 +69,7 @@ export function ForecastPanel({ latitude, longitude, locationName }: { latitude?

{t("forecast.hourly")}

-
+
    {forecast.hourly.map((hour, index) => (