diff --git a/ui/litellm-dashboard/src/components/templates/key_info_view.test.tsx b/ui/litellm-dashboard/src/components/templates/key_info_view.test.tsx index 4bf41c1f3a8..a8e3ca9e958 100644 --- a/ui/litellm-dashboard/src/components/templates/key_info_view.test.tsx +++ b/ui/litellm-dashboard/src/components/templates/key_info_view.test.tsx @@ -712,6 +712,13 @@ describe("KeyInfoView", () => { await userEvent.click(screen.getByRole("tab", { name: /settings/i })); }; + it("should render the settings panel as a bounded scroll container", async () => { + await renderAndOpenSettingsTab(); + + const settingsCard = screen.getByRole("heading", { name: /key settings/i }).closest("[data-slot='card']"); + expect(settingsCard).toHaveClass("overflow-y-auto", "max-h-[65vh]"); + }); + it("should show the Edit Settings button when the user is a proxy admin for a key they do not own", async () => { vi.mocked(useAuthorized).mockReturnValue({ ...baseUseAuthorizedMock, diff --git a/ui/litellm-dashboard/src/components/templates/key_info_view.tsx b/ui/litellm-dashboard/src/components/templates/key_info_view.tsx index 3c2c9bb352d..d842a1611c1 100644 --- a/ui/litellm-dashboard/src/components/templates/key_info_view.tsx +++ b/ui/litellm-dashboard/src/components/templates/key_info_view.tsx @@ -823,7 +823,7 @@ export default function KeyInfoView({ {/* Settings Panel */} - +

Key Settings

{!isEditing && canModifyKey && (