better responsive fix for expiration input

This commit is contained in:
Gildas Garcia committed 2026-07-31 17:55:28 +02:00
1 parent 452e23c000
commit d6bfb36eab
2 files changed
+6 -6

No files matched your search

@@ -75,11 +75,7 @@ export const TokenDetails = ({ control, setValue }: TokenDetailsProps) => {
<FormControl className="grow">
<Select value={field.value} onValueChange={handleExpiryChange}>
<SelectTrigger>
<SelectValue placeholder="Select an expiry" asChild>
<span>
{EXPIRY_OPTIONS.find((option) => option.value === field.value)?.label}
</span>
</SelectValue>
<SelectValue placeholder="Select an expiry" />
</SelectTrigger>
<SelectContent>
{EXPIRY_OPTIONS.map((option) => (
@@ -74,7 +74,11 @@ export const NewScopedTokenSheet = () => {
<SheetTrigger asChild>
<Button variant="primary">Generate new token</Button>
</SheetTrigger>
<SheetContent showClose={false} size="default" className="flex h-full flex-col gap-0">
<SheetContent
showClose={false}
size="default"
className="flex h-full flex-col gap-0 lg:w-auto"
>
<SheetHeader>
<SheetTitle>{step === 'success' ? 'Token created' : 'Generate token'}</SheetTitle>
<SheetDescription className="sr-only">