diff --git a/apps/studio/components/interfaces/DiskManagement/fields/StorageTypeField.tsx b/apps/studio/components/interfaces/DiskManagement/fields/StorageTypeField.tsx index d561300d739..6f19256fcf1 100644 --- a/apps/studio/components/interfaces/DiskManagement/fields/StorageTypeField.tsx +++ b/apps/studio/components/interfaces/DiskManagement/fields/StorageTypeField.tsx @@ -91,7 +91,7 @@ export function StorageTypeField({ form, disableInput }: StorageTypeFieldProps) /> ) : ( - + diff --git a/apps/studio/components/interfaces/JwtSecrets/jwt-secret-keys-table/create-key-dialog.tsx b/apps/studio/components/interfaces/JwtSecrets/jwt-secret-keys-table/create-key-dialog.tsx index a3151640a4c..007dc858b92 100644 --- a/apps/studio/components/interfaces/JwtSecrets/jwt-secret-keys-table/create-key-dialog.tsx +++ b/apps/studio/components/interfaces/JwtSecrets/jwt-secret-keys-table/create-key-dialog.tsx @@ -25,10 +25,6 @@ import { const RSA_JWK_REQUIRED_PROPERTIES = ['kty', 'n', 'e', 'p', 'q', 'd', 'dq', 'dp', 'qi'] const EC_JWK_REQUIRED_PROPERTIES = ['kty', 'crv', 'x', 'y', 'd'] -const ALLOWED_JWK_PROPERTIES = new Set([ - ...RSA_JWK_REQUIRED_PROPERTIES, - ...EC_JWK_REQUIRED_PROPERTIES, -]) export const CreateKeyDialog = ({ projectRef, @@ -145,11 +141,7 @@ export const CreateKeyDialog = ({ .replace(/=/g, '') : stringToBase64URL(privateKey), } - : Object.fromEntries( - Object.entries(JSON.parse(privateKey)).filter(([prop]) => - ALLOWED_JWK_PROPERTIES.has(prop) - ) - ) + : JSON.parse(privateKey) : null, }) } diff --git a/packages/ui/src/components/shadcn/ui/select.tsx b/packages/ui/src/components/shadcn/ui/select.tsx index 27663d3a8da..93b17bcf410 100644 --- a/packages/ui/src/components/shadcn/ui/select.tsx +++ b/packages/ui/src/components/shadcn/ui/select.tsx @@ -50,7 +50,7 @@ const SelectTrigger = React.forwardRef< 'flex w-full items-center justify-between rounded-md border border-strong hover:border-stronger bg-alternative dark:bg-muted hover:bg-selection text-xs ring-offset-background-control data-[placeholder]:text-foreground-lighter focus:outline-none ring-border-control focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 transition-all duration-200', 'data-[state=open]:bg-selection data-[state=open]:border-stronger', 'gap-2', - '[&>span]:truncate [&>span]:w-[20ch] text-left', // [kemal] This is to prevent double lines rendering when a string is particularly long. + '[&>span]:truncate text-left', // [kemal] This is to prevent double lines rendering when a string is particularly long. SelectTriggerVariants({ size }), className )}