fix: align map control hover spacing

Let control surfaces size to their 40px buttons, padding and borders. Reserve the resulting 50px mobile dock height to keep the map controls clear.

The initial alignment check covered only horizontal spacing and missed the mobile height constraint. Check all four outer edges at desktop and mobile widths, plus the dock gap, to prevent recurrence.
This commit is contained in:
2026-11-02 15:35:11 +08:00
parent 5f7041ffae
commit 74bf7c64c4
6 changed files with 62 additions and 6 deletions
@@ -27,12 +27,12 @@ describe("workbench floating panels", () => {
expect(resolveMobileWorkbenchOverlayLayout(true)).toEqual({
timelineBottom: 12,
dockBottom: 68,
mapControlBottom: 120
mapControlBottom: 126
});
expect(resolveMobileWorkbenchOverlayLayout(false)).toEqual({
timelineBottom: 12,
dockBottom: 12,
mapControlBottom: 64
mapControlBottom: 70
});
});