diff --git a/cypress/e2e/project/project-view-list.spec.ts b/cypress/e2e/project/project-view-list.spec.ts
index 82c737411..9c26bd91e 100644
--- a/cypress/e2e/project/project-view-list.spec.ts
+++ b/cypress/e2e/project/project-view-list.spec.ts
@@ -77,7 +77,7 @@ describe('Project View Project', () => {
})
cy.visit(`/projects/${projects[0].id}/`)
- cy.get('.menu-list li .project-menu-link .color-bubble')
+ cy.get('.menu-list li .list-menu-link .color-bubble')
.should('have.css', 'background-color', 'rgb(0, 219, 96)')
cy.get('.tasks .color-bubble')
.should('not.exist')
diff --git a/src/components/home/navigation.vue b/src/components/home/navigation.vue
index 948863bee..74696dafb 100644
--- a/src/components/home/navigation.vue
+++ b/src/components/home/navigation.vue
@@ -57,14 +57,14 @@
v-tooltip="namespaceTitles[nk]"
>
{{ namespaceTitles[nk] }}
@@ -74,18 +74,18 @@
-
-
+ updateActiveProjects(n, projects)"
- group="namespace-projects"
+ group="namespace-lists"
@start="() => drag = true"
- @end="saveProjectPosition"
+ @end="saveListPosition"
handle=".handle"
:disabled="n.id < 0 || undefined"
tag="ul"
@@ -100,45 +100,45 @@
{ 'dragging-disabled': n.id < 0 }
]
}"
- >
-
-
+ >
+
+
+
+
+
+
+
@@ -227,7 +227,7 @@ onBeforeMount(async () => {
})
function updateActiveProjects(namespace: INamespace, activeProjects: IProject[]) {
- // This is a bit hacky: since we do have to filter out the archived items from the project
+ // This is a bit hacky: since we do have to filter out the archived items from the list
// for vue draggable updating it is not as simple as replacing it.
// To work around this, we merge the active projects with the archived ones. Doing so breaks the order
// because now all archived projects are sorted after the active ones. This is fine because they are sorted
@@ -245,7 +245,7 @@ function updateActiveProjects(namespace: INamespace, activeProjects: IProject[])
const projectUpdating = ref<{ [id: INamespace['id']]: boolean }>({})
-async function saveProjectPosition(e: SortableEvent) {
+async function saveListPosition(e: SortableEvent) {
if (!e.newIndex && e.newIndex !== 0) return
const namespaceId = parseInt(e.to.dataset.namespaceId as string)
@@ -327,7 +327,7 @@ $vikunja-nav-selected-width: 0.4rem;
// should be in own components
.menu {
.menu-label,
- .menu-list .project-menu-link,
+ .menu-list .list-menu-link,
.menu-list a {
display: flex;
align-items: center;
@@ -385,7 +385,7 @@ $vikunja-nav-selected-width: 0.4rem;
background: transparent;
}
- .project-menu-link,
+ .list-menu-link,
li > a {
color: $vikunja-nav-color;
padding: 0.75rem .5rem 0.75rem ($navbar-padding * 1.5 - 1.75rem);
@@ -432,14 +432,14 @@ $vikunja-nav-selected-width: 0.4rem;
.top-menu {
margin-top: math.div($navbar-padding, 2);
-
+
.menu-list {
li {
font-weight: 600;
font-family: $vikunja-font;
}
- .project-menu-link,
+ .list-menu-link,
li > a {
padding-left: 2rem;
display: inline-block;
@@ -500,7 +500,7 @@ $vikunja-nav-selected-width: 0.4rem;
opacity: 1;
}
- .project-menu-title {
+ .list-menu-title {
overflow: hidden;
text-overflow: ellipsis;
width: 100%;
@@ -546,12 +546,12 @@ $vikunja-nav-selected-width: 0.4rem;
}
}
-.project-setting-spacer {
+.list-setting-spacer {
width: 2.5rem;
flex-shrink: 0;
}
-.namespaces-project.loader-container.is-loading {
+.namespaces-list.loader-container.is-loading {
min-height: calc(100vh - #{$navbar-height + 1.5rem + 1rem + 1.5rem});
}