diff --git a/apps/studio/components/interfaces/JwtSecrets/JWTSecretKeysTable.tsx b/apps/studio/components/interfaces/JwtSecrets/JWTSecretKeysTable.tsx index 2b204366c38..b65e5f9d17b 100644 --- a/apps/studio/components/interfaces/JwtSecrets/JWTSecretKeysTable.tsx +++ b/apps/studio/components/interfaces/JwtSecrets/JWTSecretKeysTable.tsx @@ -57,6 +57,7 @@ import { } from 'lucide-react' import { motion, AnimatePresence } from 'framer-motion' import { toast } from 'sonner' +import { cn } from 'ui' type KeyStatus = 'STANDBY' | 'IN_USE' | 'PREVIOUSLY_USED' type JWTAlgorithm = 'HS256' | 'RS256' | 'ES256' @@ -512,9 +513,9 @@ NEW_STANDBY_KEY_CONTENT transition: { duration: 0.3 }, }} exit={{ opacity: 0, height: 0 }} - className={`border-t border-dashed ${key.status === 'IN_USE' ? 'bg-surface-200' : ''}`} + className={`border-t border-dashed ${key.status === 'IN_USE' ? 'bg-surface-200' : ''} [&_td]:py-2`} > - + {statusLabels[key.status]} @@ -594,51 +595,17 @@ NEW_STANDBY_KEY_CONTENT return ( <>
- - - - - Active Keys - - - - - - - Status - - - Key ID - - - Created At - - - Type - - - Actions - - - - - {activeKeys.map(renderKeyRow)} - -
-
-
- - {previouslyUsedKeys.length > 0 && ( - - - Previously Used Keys - +
+ +
+
+ @@ -661,34 +628,68 @@ NEW_STANDBY_KEY_CONTENT - - {previouslyUsedKeys - .slice(0, showAllPreviousKeys ? undefined : 2) - .map(renderKeyRow)} - + {activeKeys.map(renderKeyRow)}
- {previouslyUsedKeys.length > 2 && ( - - )}
+
+ + {previouslyUsedKeys.length > 0 && ( +
+

Previously Used Keys

+ + + + + + + Status + + + Key ID + + + Created At + + + Type + + + Actions + + + + + + {previouslyUsedKeys + .slice(0, showAllPreviousKeys ? undefined : 2) + .map(renderKeyRow)} + + +
+ {previouslyUsedKeys.length > 2 && ( + + )} +
+
+
)}