Added support for scrolling in the ‘Open in Editor’ instance, similar to how scrolling functions in the main instance.

This commit is contained in:
GitlyHallows 2025-03-15 07:23:10 +00:00
parent 677e145a56
commit 70b19a4b6b

View file

@ -317,7 +317,26 @@ const SettingsView = forwardRef<SettingsViewRef, SettingsViewProps>(({ onDone },
</div>
</TabHeader>
<TabContent className="p-0 divide-y divide-vscode-sideBar-background" onScroll={handleScroll}>
<TabContent
className="p-0 divide-y divide-vscode-sideBar-background"
style={{
maxHeight: "calc(100vh - 6rem)",
height: "calc(100vh - 6rem)",
overflowY: "scroll",
overflowX: "hidden",
WebkitOverflowScrolling: "touch",
position: "relative",
display: "block",
msOverflowStyle: "-ms-autohiding-scrollbar",
scrollbarWidth: "auto",
scrollbarGutter: "stable",
willChange: "scroll-position",
}}
onWheel={(e) => {
const container = e.currentTarget
container.scrollTop += e.deltaY
}}
onScroll={handleScroll}>
<div ref={providersRef}>
<SectionHeader>
<div className="flex items-center gap-2">