Skip to content

Commit

Permalink
Fixed context selector pane moving body (#2733)
Browse files Browse the repository at this point in the history
  • Loading branch information
RunDevelopment authored Apr 4, 2024
1 parent 0795b6c commit 2dd3d88
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
6 changes: 5 additions & 1 deletion src/renderer/global.scss
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,14 @@
}
}

body {
html {
overflow: hidden;
}

body {
overflow: clip;
}

.react-flow__attribution {
display: none;
}
Expand Down
6 changes: 4 additions & 2 deletions src/renderer/hooks/usePaneNodeSearchMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -287,9 +287,11 @@ const Menu = memo(({ onSelect, schemata, favorites, categories, suggestions }: M
return (
<MenuList
bgColor={menuBgColor}
borderRadius="md"
borderWidth={0}
className="nodrag"
overflow="hidden"
p={0}
onContextMenu={stopPropagation}
>
<InputGroup
Expand All @@ -304,7 +306,7 @@ const Menu = memo(({ onSelect, schemata, favorites, categories, suggestions }: M
</InputLeftElement>
<Input
autoFocus
borderRadius={0}
borderRadius="md"
placeholder="Search..."
spellCheck={false}
type="text"
Expand Down Expand Up @@ -332,7 +334,7 @@ const Menu = memo(({ onSelect, schemata, favorites, categories, suggestions }: M
</InputGroup>
<Box
h="auto"
maxH={400}
maxH="calc(min(400px, 50vh - 50px))"
overflowY="scroll"
p={1}
>
Expand Down

0 comments on commit 2dd3d88

Please sign in to comment.