Plany: meta planu w jednym rzede na desktopie (tytul, dlugosc, tydzien startu)
This commit is contained in:
@@ -26,7 +26,12 @@ export function PlanMetaForm({
|
||||
}) {
|
||||
return (
|
||||
<Card>
|
||||
<div className="grid grid-cols-1 sm:grid-cols-2 gap-4">
|
||||
{/* desktop: tytuł + długość + tydzień startu obok siebie; mobile: jedno pod drugim */}
|
||||
<div
|
||||
className={`grid grid-cols-1 sm:grid-cols-2 gap-4 items-start ${
|
||||
showStartWeek ? 'lg:grid-cols-[minmax(0,1fr)_minmax(0,1fr)_auto]' : ''
|
||||
}`}
|
||||
>
|
||||
<Field label="Tytuł">
|
||||
<Input
|
||||
value={title}
|
||||
@@ -46,15 +51,13 @@ export function PlanMetaForm({
|
||||
))}
|
||||
</Select>
|
||||
</Field>
|
||||
</div>
|
||||
{showStartWeek && (
|
||||
<div className="mt-4">
|
||||
{showStartWeek && (
|
||||
<Field label="Tydzień startu">
|
||||
<WeekPicker value={startDate} onChange={onStartDateChange} />
|
||||
{startWeekError && <ErrorText>{startWeekError}</ErrorText>}
|
||||
</Field>
|
||||
{startWeekError && <ErrorText>{startWeekError}</ErrorText>}
|
||||
</div>
|
||||
)}
|
||||
)}
|
||||
</div>
|
||||
{showStartWeek && (
|
||||
<p className="mt-3 text-dim text-[0.875rem]">
|
||||
Opcjonalnie zaznacz tydzień startu — plan zostanie od razu aktywowany (start =
|
||||
|
||||
Reference in New Issue
Block a user