fix: keep Makelore branding first in the sidebar

This commit is contained in:
鲨鱼辣椒
2026-09-29 23:32:52 +08:00
parent 1329d23921
commit ae646f6c7b
4 changed files with 19 additions and 10 deletions

View File

@@ -90,7 +90,8 @@ test.describe('Makelore module navigation without setup flow', () => {
expect(brandBox).not.toBeNull();
expect(returnBox).not.toBeNull();
expect(collapseBox).not.toBeNull();
expect(returnBox!.y + returnBox!.height).toBeLessThanOrEqual(brandBox!.y);
expect(returnBox!.y).toBeGreaterThanOrEqual(brandBox!.y + brandBox!.height);
expect(brandBox!.y - sidebarBox!.y).toBeLessThanOrEqual(8);
expect(Math.abs(returnBox!.y + returnBox!.height / 2 - collapseBox!.y - collapseBox!.height / 2)).toBeLessThan(1);
expect(returnBox!.x + returnBox!.width).toBeLessThanOrEqual(collapseBox!.x);
expect(sidebarBox!.x + sidebarBox!.width - collapseBox!.x - collapseBox!.width).toBeLessThanOrEqual(14);