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 settings overlay coverage and align marketplace scrollbar https://github.com/siyuan-note/siyuan/issues/19264
Daniel190262d99fae
diff --git a/AGENTS.md b/AGENTS.mdindex e9b0454cec..df77de5489 100644--- a/AGENTS.md+++ b/AGENTS.md@@ -95,6 +95,7 @@ SiYuan repository guide. Module path `github.com/siyuan-note/siyuan`, license AG4. **Markdown:** Do not hand-wrap; keep each line (paragraphs, table rows, list items, etc.) on a single line5. **TypeScript/JavaScript:** Semicolons required, use double quotes, indent with spaces6. **CSS:** Do not use the `:has()` selector because of its performance impact+7. **CSS positioning and scrolling:** When changing `position`, `transform`, `contain`, or `overflow` on a shared container, check the effects on descendant positioning reference frames, overlay coverage, and clipping. Prefer a dedicated container when a local control needs a positioning reference. For settings dialog changes, verify detail overlays, the top drag area, and scrollbar placement at different window widths---diff --git a/app/src/assets/scss/business/_config.scss b/app/src/assets/scss/business/_config.scssindex d29b5a85f0..837b25d474 100644--- a/app/src/assets/scss/business/_config.scss+++ b/app/src/assets/scss/business/_config.scss@@ -1,6 +1,5 @@.config {&__tab-wrap {- position: relative;overflow: hidden;box-sizing: border-box;background-color: var(--b3-theme-background);@@ -11,6 +10,12 @@flex-direction: column;}+ &__drag-anchor {+ position: relative;+ height: 0;+ flex-shrink: 0;+ }+&__drag {position: absolute;top: 0;@@ -825,7 +830,7 @@}&__readme {- padding: 16px 16px 16px 0;+ padding: 16px 0;.config-bazaar__deprecated {background-color: var(--b3-card-warning-background);@@ -934,6 +939,7 @@&__main {flex: 1;margin-left: 16px;+ padding-right: 16px;overflow: auto;}diff --git a/app/src/config/setting/drag.ts b/app/src/config/setting/drag.tsindex 2553ea3625..e15e1ebc13 100644--- a/app/src/config/setting/drag.ts+++ b/app/src/config/setting/drag.ts@@ -3,10 +3,14 @@ import {scrollSettingContent} from "./dragScroll";// 顶部渐变毛玻璃固定覆盖边距,内容从其后方滚动,同时支持拖拽。export const initSettingDrag = (dialog: HTMLElement) => {const wrap = dialog.querySelector<HTMLElement>(".config__tab-wrap");+ // 仅为拖拽区域建立定位容器,让详情覆盖层仍相对整个设置面板定位。+ const anchor = document.createElement("div");+ anchor.className = "config__drag-anchor";const handle = document.createElement("div");handle.className = "config__drag resize__move";handle.setAttribute("aria-hidden", "true");- wrap.append(handle);+ anchor.append(handle);+ wrap.prepend(anchor);const onWheel = (event: WheelEvent) => {const panel = Array.from(wrap.querySelectorAll<HTMLElement>(":scope > .config__tab-container")).find(element => element.getClientRects().length > 0);@@ -59,5 +63,6 @@ export const initSettingDrag = (dialog: HTMLElement) => {handle.removeEventListener("wheel", onWheel);cancelAnimationFrame(frame);observer.disconnect();+ anchor.remove();};};