An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:bug: Restore mobile inbox sidebar swipe gestures https://github.com/siyuan-note/siyuan/issues/19646
Daniel069a777c7694
diff --git a/app/src/layout/dock/Inbox.ts b/app/src/layout/dock/Inbox.tsindex aac1d0d2d5..33f0d10990 100644--- a/app/src/layout/dock/Inbox.ts+++ b/app/src/layout/dock/Inbox.ts@@ -49,8 +49,8 @@ export class Inbox extends Model {<div class="fn__loading fn__none"><img width="64px" src="/stage/loading-pure.svg"></div></div>-<div class="fn__flex-1 fn__none inboxDetails fn__flex-column" data-prevent-swipe style="min-height: auto;background-color: var(--b3-theme-background)"></div>-<div class="fn__flex-1" data-prevent-swipe></div>`;+<div class="fn__flex-1 fn__none inboxDetails fn__flex-column" style="min-height: auto;background-color: var(--b3-theme-background)"></div>+<div class="fn__flex-1"></div>`;/// #elsethis.element.classList.add("fn__flex-column", "file-tree", "sy__inbox", "dockPanel");this.element.innerHTML = `<div class="block__icons">diff --git a/app/src/mobile/util/sidebarSwipe.test.ts b/app/src/mobile/util/sidebarSwipe.test.tsindex e2dda39af1..be90c94bf0 100644--- a/app/src/mobile/util/sidebarSwipe.test.ts+++ b/app/src/mobile/util/sidebarSwipe.test.ts@@ -181,4 +181,18 @@ for (const side of ["left", "right"] as const) {harness.end(nextX);assert.deepEqual(harness.actions, ["restore", "restore", `next:${side}`]);});++ test(`${side} sidebar closes only on a fresh gesture after content reaches its horizontal edge`, () => {+ const harness = createTouchHarness(side, {scrollable: true});+ harness.start();+ harness.move(closeX);+ harness.target.scrollLeft = side === "left" ? 300 : 0;+ harness.move(closeX);+ harness.end(closeX);+ assert.deepEqual(harness.actions, ["restore"]);+ harness.start();+ harness.move(closeX);+ harness.end(closeX);+ assert.deepEqual(harness.actions, ["restore", "close"]);+ });}