fix: projects list item on mobile.

This commit is contained in:
Darshan committed 2025-11-04 17:55:05 +05:30
1 parent 87e7a46763
commit 28db3e35aa
1 file changed
+4 -6
+4 -6
View File
@@ -160,6 +160,7 @@
const allProjectsItem = {
name: 'All projects',
trailingIcon: IconList,
href: resolve('/(console)/organization-[organization]', {
organization: selectedOrg.$id
})
@@ -177,14 +178,11 @@
});
return {
top: {
title: 'Switch project',
items: projectLinks
},
top: { title: 'Switch project', items: projectLinks },
bottom: {
items: [
createProjectItem,
...(loadedProjects.projects.length <= 4 ? [allProjectsItem] : [])
...(loadedProjects.total > 4 ? [allProjectsItem] : []),
createProjectItem
]
}
};