π The open-source, offline-first Notion, Obsidian & Confluence alternative. Advanced Markdown, multi-tenant teams, OIDC/SSO, and local S3 backups. Deploy in one command.
Vue dockergolangkanbanknowledge-baseknowledge-managementmarkdownnote-takingnotesnotes-appnotionnuxtnuxtjsoffline-firstoidcpwaselfhostedssovuevuejswiki
Fix app select when open context menu on mobile
Smaug6739e87d90ffc863
diff --git a/frontend/app/composables/useContextMenu.ts b/frontend/app/composables/useContextMenu.tsindex cc2c9af0..c3bc8e70 100644--- a/frontend/app/composables/useContextMenu.ts+++ b/frontend/app/composables/useContextMenu.ts@@ -14,6 +14,7 @@ const menu = ref<ContextMenu | null>(null);export function useContextMenu() {function open(component: object, event: MouseEvent, options: ContextMenuOptions = {}) {close();+ document.body.classList.add('modal-open');const { clientX: x, clientY: y } = event;menu.value = { component, x, y, options };event.preventDefault();@@ -21,6 +22,7 @@ export function useContextMenu() {function close() {menu.value = null;+ document.body.classList.remove('modal-open');}return {diff --git a/frontend/app/styles/main.scss b/frontend/app/styles/main.scssindex f75217c9..99f34131 100644--- a/frontend/app/styles/main.scss+++ b/frontend/app/styles/main.scss@@ -67,6 +67,10 @@ body {body.modal-open {overflow: hidden;touch-action: none;+ user-select: none;+ -webkit-user-select: none;+ -moz-user-select: none;+ -ms-user-select: none;}:root {