From 805f7a271dda24ea6e429f4ae8157ced05f9aa41 Mon Sep 17 00:00:00 2001 From: Neil <4138956+nwparker@users.noreply.github.com> Date: Mon, 15 Jun 2026 21:49:10 -0700 Subject: [PATCH] style(settings): improve section card body elevation and padding (#5457) * style(settings): improve section card body elevation and padding * test(settings): mock useShortcutKeyCombos in SettingsSidebar tests Merged sidebar search PR (#5459) switched to ShortcutKeyCombo but the test mock was not updated, breaking verify on downstream settings PRs. --- src/renderer/src/components/settings/SettingsSection.tsx | 2 +- src/renderer/src/components/settings/SettingsSidebar.test.tsx | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/renderer/src/components/settings/SettingsSection.tsx b/src/renderer/src/components/settings/SettingsSection.tsx index fbe1555c7..68a5b458f 100644 --- a/src/renderer/src/components/settings/SettingsSection.tsx +++ b/src/renderer/src/components/settings/SettingsSection.tsx @@ -84,7 +84,7 @@ export function SettingsSection({ contained inside the section, not as a continuation of the sidebar. */}
diff --git a/src/renderer/src/components/settings/SettingsSidebar.test.tsx b/src/renderer/src/components/settings/SettingsSidebar.test.tsx index 11ef40454..340d99ca5 100644 --- a/src/renderer/src/components/settings/SettingsSidebar.test.tsx +++ b/src/renderer/src/components/settings/SettingsSidebar.test.tsx @@ -12,7 +12,8 @@ const mocks = vi.hoisted(() => ({ })) vi.mock('@/hooks/useShortcutLabel', () => ({ - useShortcutLabel: () => '⌘F' + useShortcutLabel: () => '⌘F', + useShortcutKeyCombos: () => [['⌘', 'F']] })) vi.mock('./settings-setup-guide-progress', () => ({