fix double scrollbars in directory preview

This commit is contained in:
Evan Simkowitz 2024-08-27 13:28:10 -07:00
parent 8fcc856740
commit 86fc45fc13
No known key found for this signature in database

View File

@ -615,7 +615,7 @@ function DirectoryPreview({ fileNameAtom, model }: DirectoryPreviewProps) {
}, []);
return (
<OverlayScrollbarsComponent
<div
className="dir-table-container"
onChangeCapture={(e) => {
const event = e as React.ChangeEvent<HTMLInputElement>;
@ -623,7 +623,6 @@ function DirectoryPreview({ fileNameAtom, model }: DirectoryPreviewProps) {
}}
onKeyDownCapture={(e) => keyutil.keydownWrapper(handleKeyDown)(e)}
onFocusCapture={() => document.getSelection().collapseToEnd()}
options={{ scrollbars: { autoHide: "leave" } }}
>
<div className="dir-table-search-line">
<input
@ -645,7 +644,7 @@ function DirectoryPreview({ fileNameAtom, model }: DirectoryPreviewProps) {
setSelectedPath={setSelectedPath}
setRefreshVersion={setRefreshVersion}
/>
</OverlayScrollbarsComponent>
</div>
);
}