🐛 fix(vscode): 代码阅读的钉住卡片改成每张卡片都算一层,折叠着、没有子块的高卡片滚到一半也钉在顶上

This commit is contained in:
cruldra committed 2026-10-08 07:17:26 +08:00
1 parent a53a5d4504
commit a1fbefd3aa
14 files changed
+45 -34

No files matched your search

@@ -12,7 +12,7 @@ export function pinnedHeight(): number {
return document.querySelector<HTMLElement>('.cr-filter-bar')?.offsetHeight ?? 0
}
/** 筛选栏有多高,跟着它变(换行、多出第二行时):钉在它下面的东西(总览条、钉住的外层卡片)从这儿开始。 */
/** 筛选栏有多高,跟着它变(换行、多出第二行时):钉在它下面的东西(总览条、钉住的卡片)从这儿开始。 */
export function usePinnedHeight(): number {
const [height, setHeight] = useState(0)
useLayoutEffect(() => {