Fix calendar view dropdown clipping and title overlap on mobile
Add pr-8 to mobile view Select to prevent text clipping under chevron. Add min-w-0 flex-shrink to calendar title h2 to prevent nav arrow overlap. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
56175aaf86
commit
0fc2d05085
@ -513,7 +513,7 @@ export default function CalendarPage() {
|
|||||||
<Select
|
<Select
|
||||||
value={currentView}
|
value={currentView}
|
||||||
onChange={(e) => changeView(e.target.value as CalendarView)}
|
onChange={(e) => changeView(e.target.value as CalendarView)}
|
||||||
className="h-8 text-sm w-auto md:hidden"
|
className="h-8 text-sm w-auto pr-8 md:hidden"
|
||||||
>
|
>
|
||||||
{(Object.entries(viewLabels) as [CalendarView, string][]).map(([view, label]) => (
|
{(Object.entries(viewLabels) as [CalendarView, string][]).map(([view, label]) => (
|
||||||
<option key={view} value={view}>{label}</option>
|
<option key={view} value={view}>{label}</option>
|
||||||
@ -540,7 +540,7 @@ export default function CalendarPage() {
|
|||||||
))}
|
))}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<h2 className="text-sm sm:text-lg font-semibold font-heading truncate">{calendarTitle}</h2>
|
<h2 className="text-sm sm:text-lg font-semibold font-heading truncate min-w-0 flex-shrink">{calendarTitle}</h2>
|
||||||
|
|
||||||
<div className="flex-1" />
|
<div className="flex-1" />
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user