Skip to content

Commit 527c4ec

Browse files
[WEB-3422] fix: app sidebar improvements (#6634)
* chore: sidebar project list improvements * chore: code refactor
1 parent 23b0d43 commit 527c4ec

File tree

1 file changed

+2
-21
lines changed

1 file changed

+2
-21
lines changed

web/core/components/workspace/sidebar/projects-list.tsx

Lines changed: 2 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export const SidebarProjectsList: FC = observer(() => {
3838
// store hooks
3939
const { t } = useTranslation();
4040
const { toggleCreateProjectModal } = useCommandPalette();
41-
const { sidebarCollapsed, toggleExtendedProjectSidebar } = useAppTheme();
41+
const { sidebarCollapsed } = useAppTheme();
4242
const { setTrackElement } = useEventTracker();
4343
const { allowPermissions } = useUserPermissions();
4444

@@ -244,7 +244,7 @@ export const SidebarProjectsList: FC = observer(() => {
244244
static
245245
>
246246
<>
247-
{joinedProjects.slice(0, 7).map((projectId, index) => (
247+
{joinedProjects.map((projectId, index) => (
248248
<SidebarProjectsListItem
249249
key={projectId}
250250
projectId={projectId}
@@ -256,25 +256,6 @@ export const SidebarProjectsList: FC = observer(() => {
256256
handleOnProjectDrop={handleOnProjectDrop}
257257
/>
258258
))}
259-
{joinedProjects.length > 7 && (
260-
<SidebarNavItem
261-
className={`${sidebarCollapsed ? "p-0 size-8 aspect-square justify-center mx-auto" : ""}`}
262-
>
263-
<button
264-
onClick={() => toggleExtendedProjectSidebar()}
265-
id="extended-project-sidebar-toggle"
266-
className={cn(
267-
"flex items-center gap-1.5 text-sm font-medium flex-grow text-custom-text-350",
268-
{
269-
"justify-center": sidebarCollapsed,
270-
}
271-
)}
272-
>
273-
<Ellipsis className="size-4" />
274-
{!sidebarCollapsed && <span>More</span>}
275-
</button>
276-
</SidebarNavItem>
277-
)}
278259
</>
279260
</Disclosure.Panel>
280261
)}

0 commit comments

Comments
 (0)