Skip to content

πŸ“š The open-source, offline-first Notion, Obsidian & Confluence alternative. Advanced Markdown, multi-tenant teams, OIDC/SSO, and local S3 backups. Deploy in one command.

fix: make category and workspace rows fully clickable (#762) (#766)

Sairam Polisettyac89af1b7a23
diff --git a/frontend/app/pages/dashboard/categories/_components/WorkspaceTree.vue b/frontend/app/pages/dashboard/categories/_components/WorkspaceTree.vue
index aea9e357..3afcbacf 100644
--- a/frontend/app/pages/dashboard/categories/_components/WorkspaceTree.vue
+++ b/frontend/app/pages/dashboard/categories/_components/WorkspaceTree.vue
@@ -1,13 +1,13 @@
<template>
<div v-if="node.data.role === 2" class="tree-node">
- <div class="tree-content">
+ <div class="tree-content" @click="$emit('edit', node)">
<div class="tree-label">
<Icon class="icon item" name="folder" fill="var(--orange)" />
<span>{{ node.label }}</span>
</div>
<div class="tree-actions">
- <span style="padding: 2px" @click="$emit('edit', node)"><Icon class="icon" name="edit" style="display: inline" /></span>
- <span style="padding: 2px" @click="$emit('delete', node)"><Icon class="icon" name="delete" style="display: inline" /></span>
+ <span style="padding: 2px" @click.stop="$emit('edit', node)"><Icon class="icon" name="edit" style="display: inline" /></span>
+ <span style="padding: 2px" @click.stop="$emit('delete', node)"><Icon class="icon" name="delete" style="display: inline" /></span>
</div>
</div>
@@ -38,6 +38,7 @@ defineEmits(['edit', 'delete']);
display: flex;
justify-content: space-between;
align-items: center;
+ cursor:pointer;
}
.tree-content::before {
diff --git a/frontend/app/pages/dashboard/categories/index.vue b/frontend/app/pages/dashboard/categories/index.vue
index df0af223..7de261f1 100644
--- a/frontend/app/pages/dashboard/categories/index.vue
+++ b/frontend/app/pages/dashboard/categories/index.vue
@@ -15,7 +15,7 @@
</div>
<div v-for="workspace in filteredItems" :key="workspace.id" class="workspace">
<h3 class="wp-name">
- <NuxtLink :to="`/dashboard/categories/${workspace.id}/edit`">{{ workspace.label }}</NuxtLink>
+ <NuxtLink style="display: block; width: 100%; cursor: pointer;" :to="`/dashboard/categories/${workspace.id}/edit`">{{ workspace.label }}</NuxtLink>
</h3>
<WorkspaceTree v-for="node in workspace.children" :key="node.id" :node="node" @edit="editNode" @delete="deleteNode" />
</div>