mirror of
https://github.com/supabase/supabase.git
synced 2026-10-08 10:55:06 +03:00
better responsive fix for expiration input
This commit is contained in:
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) => (
|
||||
|
||||
+5
-1
@@ -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">
|
||||
|
||||
Reference in new issue
Block a user