An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:lipstick:
Vanessa1373d3d10b14
diff --git a/app/appearance/themes/daylight/theme.css b/app/appearance/themes/daylight/theme.cssindex eba11625ef..654c5bc845 100644--- a/app/appearance/themes/daylight/theme.css+++ b/app/appearance/themes/daylight/theme.css@@ -54,6 +54,9 @@--b3-tooltips-color: var(--b3-theme-background-light);--b3-tooltips-shadow: 0 2px 8px rgba(0, 0, 0, .1);+ /* 为空提示 */+ --b3-empty-color: var(--b3-theme-on-surface-light);+/* 遮罩 */--b3-mask-background: rgba(220, 220, 220, .4);diff --git a/app/appearance/themes/daylight/theme.json b/app/appearance/themes/daylight/theme.jsonindex aee14c7aee..cdb3f35022 100644--- a/app/appearance/themes/daylight/theme.json+++ b/app/appearance/themes/daylight/theme.json@@ -2,7 +2,7 @@"name": "daylight","author": "Vanessa","url": "https://github.com/Vanessa219",- "version": "1.0.2",+ "version": "1.0.3","modes": ["light"]diff --git a/app/appearance/themes/midnight/theme.css b/app/appearance/themes/midnight/theme.cssindex 37e459d1e5..ff574aedf7 100644--- a/app/appearance/themes/midnight/theme.css+++ b/app/appearance/themes/midnight/theme.css@@ -54,6 +54,9 @@--b3-tooltips-color: var(--b3-theme-on-surface-light);--b3-tooltips-shadow: 0 2px 8px rgba(0, 0, 0, .3);+ /* 为空提示 */+ --b3-empty-color: var(--b3-theme-on-surface);+/* 遮罩 */--b3-mask-background: rgba(10, 10, 10, 0.4);diff --git a/app/appearance/themes/midnight/theme.json b/app/appearance/themes/midnight/theme.jsonindex 43df72dc53..844210f482 100644--- a/app/appearance/themes/midnight/theme.json+++ b/app/appearance/themes/midnight/theme.json@@ -2,7 +2,7 @@"name": "midnight","author": "Vanessa","url": "https://github.com/Vanessa219",- "version": "1.0.2",+ "version": "1.0.3","modes": ["dark"]diff --git a/app/src/assets/scss/mobile.scss b/app/src/assets/scss/mobile.scssindex 554b14b1cb..ae509a41b5 100644--- a/app/src/assets/scss/mobile.scss+++ b/app/src/assets/scss/mobile.scss@@ -474,7 +474,7 @@html .protyle-wysiwyg [data-node-id]:last-child [spellcheck][contenteditable="true"]:empty:before {content: "Enter text";- color: var(--b3-theme-on-surface-light);+ color: var(--b3-empty-color);}html[lang="zh_CN"] .protyle-wysiwyg [data-node-id]:last-child [spellcheck][contenteditable="true"]:empty:before {diff --git a/app/src/boot/globalEvent/event.ts b/app/src/boot/globalEvent/event.tsindex cec97c111b..963fddca18 100644--- a/app/src/boot/globalEvent/event.ts+++ b/app/src/boot/globalEvent/event.ts@@ -86,7 +86,7 @@ export const initWindowEvent = (app: App) => {const dockElement = hasClosestByClassName(target, "dock__item");if (dockElement && dockElement.getAttribute("data-type")) {const dockRect = dockElement.getBoundingClientRect()- initDockMenu(dockElement).popup({x: dockRect.right, y: dockRect.bottom});+ initDockMenu(dockElement).popup({x: dockRect.right, y: dockRect.top});event.stopImmediatePropagation();event.preventDefault();return;@@ -97,7 +97,8 @@ export const initWindowEvent = (app: App) => {if (tabElement) {const tabRect = tabElement.getBoundingClientRect()initTabMenu(app, (getInstanceById(tabElement.getAttribute("data-id")) as Tab)).popup({- x: tabRect.left, y: tabRect.bottom+ x: tabRect.left,+ y: tabRect.bottom});hideTooltip()event.stopImmediatePropagation();diff --git a/app/src/boot/globalEvent/touch.ts b/app/src/boot/globalEvent/touch.tsindex 9681cafad3..6ddd5e8f24 100644--- a/app/src/boot/globalEvent/touch.ts+++ b/app/src/boot/globalEvent/touch.ts@@ -22,7 +22,7 @@ export const globalTouchEnd = (event: TouchEvent, yDiff: number, time: number, aconst menu = initNavigationMenu(app, fileItemElement);if (isIPadBoolean) {const rect = fileItemElement.getBoundingClientRect()- menu.popup({x: rect.right, y: rect.bottom, h: rect.height})+ menu.popup({x: rect.right - 52, y: rect.bottom, h: rect.height})hideTooltip()} else {window.siyuan.menus.menu.fullscreen("bottom");@@ -33,7 +33,7 @@ export const globalTouchEnd = (event: TouchEvent, yDiff: number, time: number, aconst menu = initFileMenu(app, rootElement.dataset.url, fileItemElement.dataset.path, fileItemElement);if (isIPadBoolean) {const rect = fileItemElement.getBoundingClientRect()- menu.popup({x: rect.right, y: rect.bottom, h: rect.height})+ menu.popup({x: rect.right - 52, y: rect.bottom, h: rect.height})hideTooltip()} else {window.siyuan.menus.menu.fullscreen("bottom");