Fix phantom dropdown arrow next to Today button on desktop
The mobile view Select had md:hidden on the <select> element, but the Select component wraps it in a <div> with an absolute ChevronDown icon that remained visible. Moved md:hidden to a wrapper div so the entire Select (including the chevron) is hidden on desktop. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
91f929c39b
commit
39a42d08ec
@ -511,15 +511,17 @@ export default function CalendarPage() {
|
||||
Today
|
||||
</Button>
|
||||
|
||||
<Select
|
||||
value={currentView}
|
||||
onChange={(e) => changeView(e.target.value as CalendarView)}
|
||||
className="h-8 text-sm w-auto pr-8 md:hidden"
|
||||
>
|
||||
{(Object.entries(viewLabels) as [CalendarView, string][]).map(([view, label]) => (
|
||||
<option key={view} value={view}>{label}</option>
|
||||
))}
|
||||
</Select>
|
||||
<div className="md:hidden">
|
||||
<Select
|
||||
value={currentView}
|
||||
onChange={(e) => changeView(e.target.value as CalendarView)}
|
||||
className="h-8 text-sm w-auto pr-8"
|
||||
>
|
||||
{(Object.entries(viewLabels) as [CalendarView, string][]).map(([view, label]) => (
|
||||
<option key={view} value={view}>{label}</option>
|
||||
))}
|
||||
</Select>
|
||||
</div>
|
||||
|
||||
<div className="hidden md:flex items-center rounded-md border border-border overflow-hidden">
|
||||
{(Object.entries(viewLabels) as [CalendarView, string][]).map(([view, label]) => (
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user