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: Tolerate fractional settings window layout metrics https://github.com/siyuan-note/siyuan/issues/20284
Danielf495e8488d0d
diff --git a/app/tests/settingsWindow.test.js b/app/tests/settingsWindow.test.jsindex 474139c7aa..5b6e5e4a59 100644--- a/app/tests/settingsWindow.test.js+++ b/app/tests/settingsWindow.test.js@@ -351,8 +351,8 @@ const runCases = async (sources) => {if (!button.getClientRects().length) continue;const rect = button.getBoundingClientRect();assert.equal(rect.top, 0, id + " at screen top in " + state);- assert.equal(rect.bottom, toolbar.getBoundingClientRect().bottom -- parseFloat(childWindow.getComputedStyle(toolbar).borderBottomWidth));+ assert.ok(Math.abs(rect.bottom - (toolbar.getBoundingClientRect().bottom -+ parseFloat(childWindow.getComputedStyle(toolbar).borderBottomWidth))) < 0.5);assert.ok(button.contains(childDocument.elementFromPoint((rect.left + rect.right) / 2, 0)));}childDocument.body.classList.remove(state);