Fix export chevron: wider padding + stop click propagation

The chevron was too narrow (px-1.5 → px-2.5) and clicks were
caught by the outside-click handler before toggling the dropdown.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Ullrich Schäfer 2026-04-03 10:53:18 +01:00
parent 4b711abaec
commit 721ec9e5e5
No known key found for this signature in database
GPG key ID: A32FF691A0F752D9

View file

@ -83,8 +83,8 @@ export function ExportButton({ yjs }: { yjs: YjsState }) {
{t("exportGpx")}
</button>
<button
onClick={() => setOpen((v) => !v)}
className="rounded-r border-l border-gray-300 bg-gray-100 px-1.5 py-1 text-sm text-gray-700 hover:bg-gray-200"
onClick={(e) => { e.stopPropagation(); setOpen((v) => !v); }}
className="rounded-r border-l border-gray-300 bg-gray-100 px-2.5 py-1 text-sm text-gray-700 hover:bg-gray-200"
>
</button>