From a19169ce213f3d6b151012c358c876741cf5b9cc Mon Sep 17 00:00:00 2001 From: Nikita Morozov <40804093+okaynik@users.noreply.github.com> Date: Fri, 19 Apr 2024 19:06:22 -0400 Subject: [PATCH] [core] fix(`Hotkeys`): Fix hotkeys dialog having two scrollbars (#6762) Co-authored-by: Nikita Morozov --- packages/core/src/components/hotkeys/_hotkeys.scss | 2 -- packages/core/src/legacy/hotkeysDialogLegacy.tsx | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/packages/core/src/components/hotkeys/_hotkeys.scss b/packages/core/src/components/hotkeys/_hotkeys.scss index fbea9d2a2f..c031154216 100644 --- a/packages/core/src/components/hotkeys/_hotkeys.scss +++ b/packages/core/src/components/hotkeys/_hotkeys.scss @@ -24,8 +24,6 @@ .#{$ns}-hotkey-column { margin: auto; - max-height: 80vh; - overflow-y: auto; padding: $pt-grid-size * 3; .#{$ns}-heading { diff --git a/packages/core/src/legacy/hotkeysDialogLegacy.tsx b/packages/core/src/legacy/hotkeysDialogLegacy.tsx index 487b04ce0e..8b981680bc 100644 --- a/packages/core/src/legacy/hotkeysDialogLegacy.tsx +++ b/packages/core/src/legacy/hotkeysDialogLegacy.tsx @@ -26,7 +26,7 @@ import * as React from "react"; import * as ReactDOM from "react-dom"; import { Classes } from "../common"; -import { Dialog, type DialogProps, Hotkey, type HotkeyProps, Hotkeys } from "../components"; +import { Dialog, DialogBody, type DialogProps, Hotkey, type HotkeyProps, Hotkeys } from "../components"; interface HotkeysDialogProps extends DialogProps { /** @@ -125,7 +125,7 @@ class HotkeysDialogLegacy { isOpen={this.isDialogShowing} onClose={this.hide} > -
{this.renderHotkeys()}
+ {this.renderHotkeys()} ); }