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 node context menu padding

Smaug673908f1b1fc07fd
diff --git a/frontend/app/components/AppDotMenu.vue b/frontend/app/components/AppDotMenu.vue
index bd6d2dbd..4438a570 100644
--- a/frontend/app/components/AppDotMenu.vue
+++ b/frontend/app/components/AppDotMenu.vue
@@ -67,7 +67,6 @@ onBeforeUnmount(() => document.removeEventListener('mousedown', handleClickOutsi
right: 0;
z-index: 2;
min-width: 270px;
- padding: 6px;
border: 1px solid var(--border-color);
border-radius: 6px;
background: var(--bg-color);
diff --git a/frontend/app/components/Node/NodeContextMenu.vue b/frontend/app/components/Node/NodeContextMenu.vue
index 1dc1ce22..69af9c77 100644
--- a/frontend/app/components/Node/NodeContextMenu.vue
+++ b/frontend/app/components/Node/NodeContextMenu.vue
@@ -1,5 +1,5 @@
<template>
- <div>
+ <div class="content">
<button @click="action('open')"><Icon name="file_open" /> Open</button>
<button @click="action('edit')"><Icon name="edit_page" /> Edit</button>
<button @click="action('duplicate')"><Icon name="duplicate" /> Duplicate</button>
@@ -64,6 +64,9 @@ async function action(name: string) {
</script>
<style scoped lang="scss">
+.content {
+ padding: 6px;
+}
button {
display: flex;
width: 100%;