fix(canvas): align fixed design sidebars

This commit is contained in:
inman committed 2026-09-07 16:08:17 +08:00
1 parent e98603435d
commit 6a05992e18
10 files changed
+74 -25

No files matched your search

+3 -3
View File
@@ -131,9 +131,9 @@ describe('AI Design Canvas page', () => {
render(<ImageCanvas />);
const historyRail = screen.getByTestId('image-workspace-history-rail');
expect(historyRail).toHaveClass('h-full', 'border-l');
expect(screen.getByTestId('image-workspace-header')).toHaveClass('h-12');
expect(screen.getByTestId('image-workspace-history-header')).toHaveClass('h-12');
expect(historyRail).toHaveClass('h-full', 'w-64', 'border-l');
expect(screen.getByTestId('image-workspace-header')).toHaveClass('h-10');
expect(screen.getByTestId('image-workspace-history-header')).toHaveClass('h-10');
expect(within(historyRail).getByRole('heading', { name: '历史作品' })).toBeInTheDocument();
expect(within(historyRail).queryByText('当前设计项目的制作记录')).not.toBeInTheDocument();
expect(within(historyRail).getByText('还没有历史作品')).toBeInTheDocument();