From a5fea9c05a9133a5bf0530152a54d600c39e2122 Mon Sep 17 00:00:00 2001 From: 1ilit <1ilit@proton.me> Date: Fri, 29 Nov 2024 20:53:33 +0400 Subject: [PATCH] Fix overflow --- src/components/EditorHeader/Modal/Modal.jsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/EditorHeader/Modal/Modal.jsx b/src/components/EditorHeader/Modal/Modal.jsx index aa069e87..8db36c46 100644 --- a/src/components/EditorHeader/Modal/Modal.jsx +++ b/src/components/EditorHeader/Modal/Modal.jsx @@ -369,7 +369,8 @@ export default function Modal({ width={getModalWidth(modal)} bodyStyle={{ maxHeight: window.innerHeight - 280, - overflow: "auto", + overflow: + modal === MODAL.CODE || modal === MODAL.IMG ? "hidden" : "auto", direction: "ltr", }} >