calendar QoL changes

This commit is contained in:
2026-01-24 12:50:23 +00:00
parent 5b9a326d27
commit a6a58260f8
3 changed files with 66 additions and 16 deletions

View File

@@ -243,6 +243,7 @@ export function SprintForm({
<PopoverContent className="w-auto p-0" align="center">
<Calendar
mode="single"
currentSprint={{ colour, startDate, endDate }}
selected={startDate}
onSelect={(value) => {
if (!value) return;
@@ -250,6 +251,9 @@ export function SprintForm({
}}
autoFocus
sprints={calendarSprints}
showWeekNumber
showOutsideDays={false}
defaultMonth={startDate}
/>
</PopoverContent>
</Popover>
@@ -266,6 +270,7 @@ export function SprintForm({
<PopoverContent className="w-auto p-0" align="center">
<Calendar
mode="single"
currentSprint={{ colour, startDate, endDate }}
selected={endDate}
onSelect={(value) => {
if (!value) return;
@@ -274,6 +279,9 @@ export function SprintForm({
autoFocus
sprints={calendarSprints}
isEnd
showWeekNumber
showOutsideDays={false}
defaultMonth={endDate}
/>
</PopoverContent>
</Popover>