Skip to content

Shared task board where people and AI coding agents work as teammates. Source-available, self-hostable.

Go

fix(projects): make GitHub repo list scrollable in Add Resource popovers (#2490)

yuhaowin24a59098d65e
diff --git a/packages/views/modals/create-project.tsx b/packages/views/modals/create-project.tsx
index f9c3ec3c36..adeb2c8702 100644
--- a/packages/views/modals/create-project.tsx
+++ b/packages/views/modals/create-project.tsx
@@ -464,7 +464,7 @@ export function CreateProjectModal({ onClose }: { onClose: () => void }) {
{t(($) => $.create_project.repos_heading)}
</div>
{workspaceRepos.length > 0 ? (
- <div className="space-y-1">
+ <div className="space-y-1 max-h-48 overflow-y-auto">
{workspaceRepos.map((repo) => {
const checked = selectedRepos.includes(repo.url);
return (
diff --git a/packages/views/projects/components/project-resources-section.tsx b/packages/views/projects/components/project-resources-section.tsx
index 6eb08a3ef0..f0e3261b84 100644
--- a/packages/views/projects/components/project-resources-section.tsx
+++ b/packages/views/projects/components/project-resources-section.tsx
@@ -117,7 +117,7 @@ export function ProjectResourcesSection({ projectId }: { projectId: string }) {
{t(($) => $.resources.popover_title)}
</div>
{workspace?.repos && workspace.repos.length > 0 && (
- <div className="space-y-1">
+ <div className="space-y-1 max-h-48 overflow-y-auto">
{workspace.repos.map((repo) => {
const isAttached = attachedUrls.has(repo.url);
const isDisabled = isAttached || createResource.isPending;