Compact mobile action bar and move ordering control into placement editor

This commit is contained in:
coyotte508 2026-10-12 10:17:24 +02:00
commit 940c4edf07
3 changed files with 17 additions and 2 deletions

View file

@ -988,9 +988,15 @@ try {
"another placement preserves our draft and editor",
);
await page.keyboard.press("Escape");
await page.screenshot({ path: `.local/qa/${width}-placement-dock.png` });
if (width <= 760) {
const bar = await page.locator(".action-dock").boundingBox();
assert.ok(bar.height < 115, "mobile placement bar stays within two rows");
await page.locator(".action-dock [data-actions]").click();
}
await page
.locator(
'.action-dock [data-move="%7B%22type%22%3A%22orderedPlacement%22%7D"]',
`${width <= 760 ? ".pr-modal" : ".action-dock"} [data-move="%7B%22type%22%3A%22orderedPlacement%22%7D"]`,
)
.click();
assert.equal(

View file

@ -1668,6 +1668,15 @@ body:has(.pr-game) {
.pr-game .action-dock strong {
font-size: 12px;
}
.pr-game .action-dock .dock-order {
display: none;
}
.pr-game .action-dock:not(.action-dock-compact) .dock-controls > button:not(.dock-order) {
flex: 1 1 0;
min-width: 0;
min-height: 44px;
justify-content: center;
}
.pr-game .action-dock-compact {
flex-wrap: nowrap;
gap: 10px;

View file

@ -821,7 +821,7 @@ export function mountGame(
{ type: "orderedPlacement" },
t("orderedPlacement"),
"governor",
"quiet",
"quiet dock-order",
)
: "";
const undo =