From 86fc45fc133aa5a80d4828452072b71718a2918c Mon Sep 17 00:00:00 2001 From: Evan Simkowitz Date: Tue, 27 Aug 2024 13:28:10 -0700 Subject: [PATCH] fix double scrollbars in directory preview --- frontend/app/view/preview/directorypreview.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/frontend/app/view/preview/directorypreview.tsx b/frontend/app/view/preview/directorypreview.tsx index 6801d9a87..6473644fa 100644 --- a/frontend/app/view/preview/directorypreview.tsx +++ b/frontend/app/view/preview/directorypreview.tsx @@ -615,7 +615,7 @@ function DirectoryPreview({ fileNameAtom, model }: DirectoryPreviewProps) { }, []); return ( - { const event = e as React.ChangeEvent; @@ -623,7 +623,6 @@ function DirectoryPreview({ fileNameAtom, model }: DirectoryPreviewProps) { }} onKeyDownCapture={(e) => keyutil.keydownWrapper(handleKeyDown)(e)} onFocusCapture={() => document.getSelection().collapseToEnd()} - options={{ scrollbars: { autoHide: "leave" } }} >
- +
); }