From bb36f240f20afff31cb5a17f14cfe99d81e759c7 Mon Sep 17 00:00:00 2001 From: Alf Eaton Date: Thu, 14 Sep 2023 13:18:31 +0100 Subject: [PATCH] Fix the position of the pasted content menu when scrolling (#14834) GitOrigin-RevId: df0a8290b7838b83e21676eb69924b11e51b38e6 --- .../source-editor/components/paste-html/pasted-content-menu.tsx | 2 +- .../features/source-editor/extensions/visual/pasted-content.tsx | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/services/web/frontend/js/features/source-editor/components/paste-html/pasted-content-menu.tsx b/services/web/frontend/js/features/source-editor/components/paste-html/pasted-content-menu.tsx index eaa5c80aac..3ab0b6edff 100644 --- a/services/web/frontend/js/features/source-editor/components/paste-html/pasted-content-menu.tsx +++ b/services/web/frontend/js/features/source-editor/components/paste-html/pasted-content-menu.tsx @@ -85,7 +85,7 @@ export const PastedContentMenu: FC<{ show onHide={() => setMenuOpen(false)} animation={false} - container={view.dom} + container={view.scrollDOM} containerPadding={0} placement="bottom" rootClose diff --git a/services/web/frontend/js/features/source-editor/extensions/visual/pasted-content.tsx b/services/web/frontend/js/features/source-editor/extensions/visual/pasted-content.tsx index c28b2a80f7..bab7862dc2 100644 --- a/services/web/frontend/js/features/source-editor/extensions/visual/pasted-content.tsx +++ b/services/web/frontend/js/features/source-editor/extensions/visual/pasted-content.tsx @@ -113,6 +113,7 @@ export const pastedContent = StateField.define<{ flexDirection: 'column', boxSizing: 'border-box', fontSize: '14px', + fontFamily: '"Lato", sans-serif', }, '.ol-cm-pasted-content-menu-item': { border: 'none',