From a29be68ee9c6f77f43dbce006b2648230513f0f1 Mon Sep 17 00:00:00 2001 From: tisachi Date: Fri, 11 Sep 2026 20:19:02 +0200 Subject: [PATCH] Plany: kalendarz startu pelna szerokosc kolumny, na mobile inputy nad kalendarzem --- app/src/components/ui/week-picker.tsx | 6 +++++- app/src/pages/plans/plan-editor/PlanMetaForm.tsx | 14 ++++++++------ 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/app/src/components/ui/week-picker.tsx b/app/src/components/ui/week-picker.tsx index 260f4c1..b1581e2 100644 --- a/app/src/components/ui/week-picker.tsx +++ b/app/src/components/ui/week-picker.tsx @@ -3,6 +3,7 @@ import { ChevronLeft, ChevronRight } from 'lucide-react'; import { Button } from './button'; import { formatMonth } from '../../store/body-params'; import { fmtDate } from '../../lib/format'; +import { cn } from '../../lib/utils'; const WEEK_DOWS = ['Pn', 'Wt', 'Śr', 'Cz', 'Pt', 'So', 'Nd']; @@ -48,9 +49,12 @@ export function isPastWeek(monday: string): boolean { export function WeekPicker({ value, onChange, + className, }: { value: string; onChange: (monday: string) => void; + /** Dodatkowe klasy dla roota (np. max-w-none, żeby wypełnić kontener). */ + className?: string; }) { const now = new Date(); const [view, setView] = useState<[number, number]>(() => { @@ -81,7 +85,7 @@ export function WeekPicker({ const selMondayKey = value ? localDayKey(mondayOf(parseIsoLocal(value))) : null; return ( -
+