mirror of
https://github.com/wavetermdev/waveterm.git
synced 2024-12-21 16:38:23 +01:00
fix double scrollbars in directory preview
This commit is contained in:
parent
8fcc856740
commit
86fc45fc13
@ -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>
|
||||
);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user