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: adjust padding in AppSelectNode component

Smaug6739473d531e1073
diff --git a/frontend/app/components/AppSelect.vue b/frontend/app/components/AppSelect.vue
index ce7d3e2f..c4f975bc 100644
--- a/frontend/app/components/AppSelect.vue
+++ b/frontend/app/components/AppSelect.vue
@@ -107,7 +107,6 @@ const trigger = ref<HTMLElement | null>(null);
const portalList = ref<HTMLElement | null>(null);
const dropdownStyle = ref<Record<string, string>>({});
-// Mobile detection
const windowWidth = ref(typeof window !== 'undefined' ? window.innerWidth : 1024);
function updateWindowWidth() {
@@ -200,8 +199,7 @@ function handleSelect(node: ANode) {
function handleClickOutside(e: MouseEvent) {
// use composedPath for shadow-dom-safe detection
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
- const path = (e.composedPath && e.composedPath()) || (e as any).path || [];
+ const path = (e.composedPath && e.composedPath()) || (e as unknown as { path: EventTarget[] }).path || [];
const targetIsInsideTrigger = trigger.value && (path.length ? path.includes(trigger.value) : trigger.value.contains(e.target as Node));
const targetIsInsidePortal = portalList.value && (path.length ? path.includes(portalList.value) : portalList.value.contains(e.target as Node));
diff --git a/frontend/app/components/AppSelectNode.vue b/frontend/app/components/AppSelectNode.vue
index 6df04b28..0374acf3 100644
--- a/frontend/app/components/AppSelectNode.vue
+++ b/frontend/app/components/AppSelectNode.vue
@@ -33,7 +33,7 @@ function select() {
.tree-node {
display: block;
margin: 0 auto;
- padding: 4px 8px;
+ padding: 4px 6px;
border-radius: var(--radius-xs);
font-size: 0.85rem;
text-align: left;