fix(web): widen the credential type select so options are not clipped

The credential dialog used a w-fit trigger, so the popup inherited the width
of the currently selected label ("Access token"), and the explicit min-w-0
on the popup removed the 9rem floor that select-content normally keeps. The
longest option, "Username and password", was therefore clipped by the
popup's overflow-x-hidden.

Let the trigger span the dialog and keep the default min width of the popup.

Verification:
- cd web && npx tsc --noEmit
- cd web && npx oxlint
- cd web && npx vite build
This commit is contained in:
Tosone committed 2026-10-27 21:30:35 +08:00
1 parent 93de2dac54
commit ef9fa992fc
1 file changed
+2 -2
@@ -147,10 +147,10 @@ export default function ({
if (v) setType(v);
}}
>
<SelectTrigger>
<SelectTrigger className="w-full">
<SelectValue />
</SelectTrigger>
<SelectContent className="min-w-0">
<SelectContent>
{credentialTypes.map((item) => (
<SelectItem key={item.value} value={item.value}>
{t(item.labelKey)}