mirror of
https://github.com/appwrite/console.git
synced 2026-11-18 20:47:21 +00:00
fix: projects list item on mobile.
This commit is contained in:
1 parent
87e7a46763
commit
28db3e35aa
1 file changed
+4
-6
@@ -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
|
||||
]
|
||||
}
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user