done?
All checks were successful
Docker Build & Publish / Build Docker (push) Successful in 1m8s

This commit is contained in:
ChrQR 2024-05-12 21:33:36 +02:00
parent 83b337db03
commit 9745332ad9
4 changed files with 4 additions and 4 deletions

View File

@ -17,7 +17,7 @@ export default function Home() {
return (
<main>
<div className='mx-auto max-w-xs sm:max-w-md md:max-w-xl text-center'>
<div className='mx-auto max-w-xs sm:max-w-md md:max-w-3xl text-center'>
<LocationContext.Provider value={contextValue}>
<LocationSearch />
<WeatherNow />

View File

@ -4,7 +4,7 @@ import DailyCard from "./DailyCard";
export default function CardContainer(props: {weather: Forecast}) {
const weather = props.weather;
return (
<div className="flex overflow-scroll justify-center">
<div className="p-2 flex overflow-scroll md:justify-center w-full">
{weather.daily && weather.daily.apparent_temperature_max.map((temp, index) => (
index > 0 &&
index < 7 && // Ensure we only render the next 6 days

View File

@ -8,7 +8,7 @@ export default function DailyCard(props: DailyCardPropType) {
const weatherCode = props.weatherCode
const temperature = props.temperature
return (
<div className="m-1 p-2 text-center shadow-md border-slate-200 border-2 rounded">
<div className="min-w-28 m-1 p-2 text-center shadow-md border-slate-200 border-2 rounded">
<WeatherIcon weatherCode={weatherCode}/>
<DailyTemp temperature={temperature} />
<DailyTime time={time} />

View File

@ -27,7 +27,7 @@ export default function LocationSearch() {
return (
<form onSubmit={handleSubmit}>
<input
className="my-4 w-full rounded h-8 px-2 box-border border-2 hover:shadow-md"
className="my-4 w-full rounded h-8 px-2 box-border border-2 hover:shadow-md max-w-md"
id="location"
name="locationSearch"
type="text"