fix: 文件夹状态显式化、保存回滚/冲突、远程显示名与路径防重 #1

Merged
newbie merged 2 commits from fix/folders-state-display-dedupe into main 2026-11-12 21:02:45 +08:00
3 changed files with 6 additions and 1 deletions
Showing only changes of commit fb88fd2d3e - Show all commits

File diff suppressed because one or more lines are too long

View File

@ -3,6 +3,8 @@
flex-direction:column;
flex:1;
width:100%;
height:100%;
max-height:100%;
min-width:0;
min-height:0;
display:flex;

View File

@ -58,6 +58,9 @@ const block = (selector) => {
const start = match.index + match[0].length - match[1].length
return css.slice(start, css.indexOf('}', start))
}
assert.match(block('.wgRoot'), /height:100%/, 'the root consumes the sidebar slot height')
assert.match(block('.wgRoot'), /max-height:100%/, 'the root cannot grow past its slot')
assert.match(block('.wgRoot'), /overflow:hidden/, 'the root clips instead of scrolling the whole sidebar')
assert.match(block('.wgDock'), /border-top:1px solid/, 'the dock draws the divider against the tree')
assert.match(block('.wgDock'), /max-height:min\(62vh,560px\)/, 'the dock is capped so the tree always keeps room')
assert.match(block('.wgDock'), /overflow:hidden/, 'the dock clips its own overflow instead of painting over the tree')