This commit is contained in:
devin-ai-integration[bot] 2026-09-23 14:51:23 +00:00 • committed by GitHub
commit 23cf6c3e19
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 8 additions and 1 deletions

View file

@ -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,

View file

@ -823,7 +823,7 @@ export default function KeyInfoView({
{/* Settings Panel */}
<TabsContent value="settings" keepMounted>
<Card className="block p-6">
<Card className="block p-6 overflow-y-auto max-h-[65vh]">
<div className="flex justify-between items-center mb-4">
<h3 className="text-lg font-medium">Key Settings</h3>
{!isEditing && canModifyKey && (