diff --git a/apps/dashboard/app/(app)/apis/[apiId]/_components/create-key/components/ratelimit-setup.tsx b/apps/dashboard/app/(app)/apis/[apiId]/_components/create-key/components/ratelimit-setup.tsx
index 78ba5efcb1..b04e78421e 100644
--- a/apps/dashboard/app/(app)/apis/[apiId]/_components/create-key/components/ratelimit-setup.tsx
+++ b/apps/dashboard/app/(app)/apis/[apiId]/_components/create-key/components/ratelimit-setup.tsx
@@ -1,6 +1,7 @@
"use client";
import { Gauge, Trash } from "@unkey/icons";
import { Button, FormInput } from "@unkey/ui";
+import { cn } from "@unkey/ui/src/lib/utils";
import { useEffect } from "react";
import { useFieldArray, useFormContext, useWatch } from "react-hook-form";
import type { RatelimitFormValues, RatelimitItem } from "../create-key.schema";
@@ -88,7 +89,10 @@ export const RatelimitSetup = () => {
{
readOnly={!ratelimitEnabled}
{...register(`ratelimit.data.${index}.name`)}
/>
+
{fields.length > 1 ? (
- ) : (
-
- )}
+ ) : null}
+
{
readOnly={!ratelimitEnabled}
{...register(`ratelimit.data.${index}.limit`)}
/>
-
-
-
-
+
+
))}
diff --git a/apps/dashboard/app/(app)/apis/[apiId]/_components/create-key/index.tsx b/apps/dashboard/app/(app)/apis/[apiId]/_components/create-key/index.tsx
index 54ea58bf4d..91653c7c64 100644
--- a/apps/dashboard/app/(app)/apis/[apiId]/_components/create-key/index.tsx
+++ b/apps/dashboard/app/(app)/apis/[apiId]/_components/create-key/index.tsx
@@ -151,7 +151,7 @@ export const CreateKeyDialog = ({
diff --git a/apps/dashboard/components/dialog-container/navigable-dialog.tsx b/apps/dashboard/components/dialog-container/navigable-dialog.tsx
index ad5a13d460..2b7449934a 100644
--- a/apps/dashboard/components/dialog-container/navigable-dialog.tsx
+++ b/apps/dashboard/components/dialog-container/navigable-dialog.tsx
@@ -62,7 +62,7 @@ export function NavigableDialogRoot({