Skip to content

Commit a2b92ee

Browse files
authored
fix: Remove double scrollbar from repo selector (#1537)
## Problem Repo selector dropdown shows two scrollbars when the list overflows. Closes #1490 ## Changes 1. Add overflow: hidden to .rt-PopoverContent combobox reset so the outer wrapper never scrolls 2. Remove redundant inline maxHeight: "300px" from GitHubRepoPicker, deferring to the existing [cmdk-root] CSS constraint ## How did you test this? Manually
1 parent d113d62 commit a2b92ee

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

apps/code/src/renderer/components/ui/combobox/Combobox.css

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
background: transparent;
44
border: none;
55
box-shadow: none;
6+
overflow: hidden;
67
}
78

89
.combobox-content [cmdk-root] {

apps/code/src/renderer/features/folder-picker/components/GitHubRepoPicker.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ export function GitHubRepoPicker({
6262
</Text>
6363
</Flex>
6464
</Combobox.Trigger>
65-
<Combobox.Content style={{ maxHeight: "300px" }}>
65+
<Combobox.Content>
6666
<Combobox.Input placeholder="Search repositories..." />
6767
<Combobox.Empty>No repositories found.</Combobox.Empty>
6868
{repositories.map((repo) => (

0 commit comments

Comments
 (0)