feat(events): compact the calendar month grid
The aspect-square day cells made the month grid ~350px tall on mobile, pushing the selected-day event list well below the fold. Switch cells to a fixed h-12 (still a comfortable 48px tap target) and tighten the section spacing (space-y-4 → space-y-2), so the grid + day's events fit with less scrolling. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
9941bacaf1
commit
561ef06ad0
1 changed files with 2 additions and 2 deletions
|
|
@ -97,7 +97,7 @@ function nextMonth() {
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div class="space-y-4">
|
<div class="space-y-2">
|
||||||
<!-- Month navigation -->
|
<!-- Month navigation -->
|
||||||
<div class="flex items-center justify-between">
|
<div class="flex items-center justify-between">
|
||||||
<Button variant="ghost" size="icon" class="h-8 w-8" @click="prevMonth">
|
<Button variant="ghost" size="icon" class="h-8 w-8" @click="prevMonth">
|
||||||
|
|
@ -125,7 +125,7 @@ function nextMonth() {
|
||||||
<button
|
<button
|
||||||
v-for="date in calendarDays"
|
v-for="date in calendarDays"
|
||||||
:key="date.toISOString()"
|
:key="date.toISOString()"
|
||||||
class="aspect-square flex flex-col items-center justify-center relative p-1 rounded-lg transition-colors"
|
class="h-12 flex flex-col items-center justify-center relative p-0.5 rounded-lg transition-colors"
|
||||||
:class="{
|
:class="{
|
||||||
'text-muted-foreground/40': !isSameMonth(date, currentMonth),
|
'text-muted-foreground/40': !isSameMonth(date, currentMonth),
|
||||||
'bg-primary text-primary-foreground': selectedDay && isSameDay(date, selectedDay),
|
'bg-primary text-primary-foreground': selectedDay && isSameDay(date, selectedDay),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue