feat: desktop sidebar collapse and hidden folder scrollbar
ci / docker (push) Successful in 3m24s

This commit is contained in:
2026-09-07 10:22:05 +08:00
parent fa69a817ff
commit 5217bb1c19
3 changed files with 26 additions and 3 deletions
+13
View File
@@ -35,6 +35,19 @@ describe('mobile touch targets', () => {
})
})
describe('desktop sidebar collapse & folder scrollbar', () => {
it('lets the top menu collapse the desktop sidebar', () => {
expect(app).toContain('sidebar-collapsed')
expect(app).toContain('toggleSidebar')
expect(css).toContain('.shell.sidebar-collapsed{grid-template-columns:0 minmax(430px,1fr) 350px}')
})
it('hides the folders scrollbar while staying scrollable', () => {
expect(css).toContain('scrollbar-width:none')
expect(css).toContain('.folders::-webkit-scrollbar{display:none}')
})
})
describe('sidebar layout', () => {
it('switches to the compact layout before the desktop grid can be clipped', () => {
expect(css).toContain('@media(max-width:930px){.shell')