Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

fix(projects): let the sidebar projects list fill the panel (#8953)

Eric Hayesc785810cbb71
diff --git a/apps/web/src/features/projects/views/projects-sidebar.tsx b/apps/web/src/features/projects/views/projects-sidebar.tsx
index 9ad47114a2..daad78b630 100644
--- a/apps/web/src/features/projects/views/projects-sidebar.tsx
+++ b/apps/web/src/features/projects/views/projects-sidebar.tsx
@@ -56,6 +56,7 @@ export function ProjectsSidebar(props: ProjectsSidebarProps) {
<CollapsibleSection.Root
open={props.open}
onOpenChange={props.onOpenChange}
+ class="flex min-h-40 flex-col data-expanded:flex-1"
>
<CollapsibleSection.Header>
<CollapsibleSection.Trigger class="flex-1">
@@ -66,11 +67,11 @@ export function ProjectsSidebar(props: ProjectsSidebarProps) {
<PlusIcon class="size-3.5" />
</CollapsibleSection.Action>
</CollapsibleSection.Header>
- <CollapsibleSection.Content>
+ <CollapsibleSection.Content class="flex min-h-0 flex-1 flex-col">
<Suspense fallback={<ProjectsSidebarSkeleton />}>
<ViewSidebar.Nav
aria-label="My projects"
- class="max-h-52 overflow-y-auto overscroll-contain"
+ class="min-h-0 flex-1 overflow-y-auto overscroll-contain"
>
<For each={source.rows()}>
{({ project }) => (
diff --git a/apps/web/src/features/tasks-view/components/TasksSidebar.tsx b/apps/web/src/features/tasks-view/components/TasksSidebar.tsx
index a36dbc73af..9d7d8a6ed5 100644
--- a/apps/web/src/features/tasks-view/components/TasksSidebar.tsx
+++ b/apps/web/src/features/tasks-view/components/TasksSidebar.tsx
@@ -173,7 +173,7 @@ export function TasksSidebar() {
});
return (
- <ViewSidebar.Root aria-label="Tasks navigation">
+ <ViewSidebar.Root aria-label="Tasks navigation" class="relative">
<SidebarCreateHeader
title="Tasks"
searchLabel="Search tasks"
@@ -233,8 +233,12 @@ export function TasksSidebar() {
}}
/>
</Show>
- <ConnectorImportSidebar category="tasks" class="mt-auto" />
</ViewSidebar.Content>
+ {/* Overlays the sidebar's bottom so the projects list keeps its height. */}
+ <ConnectorImportSidebar
+ category="tasks"
+ class="absolute inset-x-(--sidebar-gutter) bottom-(--sidebar-content-inset) z-10"
+ />
</ViewSidebar.Root>
);
}