fix: polish platform creation flow interactions

This commit is contained in:
2026-06-06 21:36:38 +08:00
parent 7e6ed91149
commit 50e335ba47
12 changed files with 434 additions and 102 deletions

View File

@@ -31,6 +31,34 @@ function getCssBlock(source: string, selector: string) {
}
describe('index stylesheet unread dots', () => {
it('hides the outer page scrollbar without changing inner scroll helpers', () => {
const css = readIndexCss();
const rootBlock = getCssBlock(css, 'html,\nbody,\n#root');
expect(rootBlock).toContain('overflow-x: hidden;');
expect(rootBlock).toContain('-ms-overflow-style: none;');
expect(rootBlock).toContain('scrollbar-width: none;');
expect(css).toContain(
'html,\nbody,\n#root,\n.platform-viewport-shell,\n.platform-tab-panel,\n.platform-page-stage,\n.unified-creation-page,\n.platform-work-detail__scroll',
);
const webkitRootBlock = getCssBlock(
css,
'html::-webkit-scrollbar,\nbody::-webkit-scrollbar,\n#root::-webkit-scrollbar',
);
expect(webkitRootBlock).toContain('display: none;');
expect(webkitRootBlock).toContain('width: 0;');
expect(webkitRootBlock).toContain('height: 0;');
expect(css).toContain('.platform-viewport-shell::-webkit-scrollbar');
expect(css).toContain('.platform-tab-panel::-webkit-scrollbar');
expect(css).toContain('.platform-page-stage::-webkit-scrollbar');
expect(css).toContain('.unified-creation-page::-webkit-scrollbar');
expect(css).toContain('.platform-work-detail__scroll::-webkit-scrollbar');
expect(css).toContain('.scrollbar-hide');
expect(css).toContain('::-webkit-scrollbar-thumb');
});
it('uses warm brown tokens for draft unread markers instead of red literals', () => {
const css = readIndexCss();