From 01683ab2b887377d31dba7c043494aff75c302aa Mon Sep 17 00:00:00 2001 From: Shinuwa Date: Thu, 19 Nov 2026 09:46:40 +0100 Subject: [PATCH] Put the bulk recycling rarity menu under its label, above the album The label and the menu shared one line in the narrow side column, which squeezed the menu down to a single letter, and its open list slid under the album cards. The menu now sits under its label across the whole box, and the side column rises above the album while one of its menus is open. Co-Authored-By: Claude Opus 5.5 --- e2e/nebula-cards.spec.js | 11 +++++++++++ website/src/styles/_nebula-cards.scss | 5 ++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/e2e/nebula-cards.spec.js b/e2e/nebula-cards.spec.js index 5a7af86..72816b1 100644 --- a/e2e/nebula-cards.spec.js +++ b/e2e/nebula-cards.spec.js @@ -2075,6 +2075,17 @@ test("an administrator opens expeditions and a player leaves alone, follows the // La suite du parcours reprend le Loup au niveau 0. setWolfLevel(0); await partner.reload(); + // Le recyclage en masse s'arrête à une rareté choisie : son menu, sous l'intitulé, s'ouvre en entier au-dessus de l'album. + const recycleBox = partner.getByRole("region", { name: "Recyclage des doublons", exact: true }); + const rarityTrigger = selectTrigger(recycleBox, "Jusqu’à la rareté"); + await expect(rarityTrigger).toHaveText("Commun"); + const [labelBox, triggerBox] = await Promise.all([recycleBox.locator(".nds-select-field > span").boundingBox(), rarityTrigger.boundingBox()]); + expect(triggerBox.y).toBeGreaterThan(labelBox.y + labelBox.height - 1); + await rarityTrigger.click(); + await expectOpenMenuVisible(partner, ".nebula-recycle-box .nds-select-menu"); + await partner.screenshot({ path: join(tmpdir(), "sokkog-cards-recycle-rarity.png") }); + await recycleBox.getByRole("option", { name: "Légendaire", exact: true }).click(); + await expect(rarityTrigger).toHaveText("Légendaire"); await partner.getByRole("navigation", { name: "Sections de Sokko TCG" }).getByRole("link", { name: "Historique", exact: true }).click(); await expect(partner.locator(".nebula-history-list li").filter({ hasText: "Expédition terminée" })).toContainText("★ · 2 h"); // Alertes Discord : désactivées tant que le joueur ne les active pas, une par une. diff --git a/website/src/styles/_nebula-cards.scss b/website/src/styles/_nebula-cards.scss index 2c189c5..8b12db2 100644 --- a/website/src/styles/_nebula-cards.scss +++ b/website/src/styles/_nebula-cards.scss @@ -665,6 +665,8 @@ main:has(.nebula-dashboard) { overflow-x: clip; } .nebula-admin-refresh { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--space-2); margin: 2px 0 0; color: var(--color-text-muted); font-size: var(--font-size-xs); } .nebula-dashboard-shell { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-5); min-width: 0; } .nebula-dashboard-aside { display: grid; gap: var(--space-3); min-width: 0; } +/* Un menu ouvert dans la colonne passe au-dessus de l'album voisin (la colonne collante forme son propre empilement). */ +.nebula-dashboard-aside:has(:is(.nds-select-dropdown, .nds-filter-dropdown).is-open) { z-index: 5; } .nebula-dashboard-aside-slot { display: grid; gap: var(--space-2); min-width: 0; } .nebula-dashboard-aside-slot:empty { display: none; } .nebula-dashboard-aside-slot .nebula-opening-reserve.is-compact { width: 100%; } @@ -1069,7 +1071,8 @@ main:has(.nebula-dashboard) { overflow-x: clip; } .nebula-shop-buy .nebula-stardust { color: inherit; font-size: inherit; } .nds-panel.nebula-recycle-box { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4); padding: var(--space-3) var(--space-4); } .nebula-recycle-box p { margin: 0; color: var(--color-text-secondary); font-size: var(--font-size-sm); } -.nebula-recycle-box .nebula-recycle-box-rarity { display: flex; align-items: center; gap: var(--space-2); color: var(--color-text-secondary); font-size: var(--font-size-sm); white-space: nowrap; } +/* Le choix de la rareté maximale : son intitulé au-dessus, le menu sur toute la largeur de l'encart. */ +.nebula-recycle-box .nebula-recycle-box-rarity { flex: 1 1 160px; } .nebula-recycle-box .nebula-stardust { font-size: var(--font-size-xl); } .nebula-recycle-box-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-left: auto; } /* En colonne, sous le menu : les encarts s'empilent ; en demi-écran, ils restent des bandeaux sous le menu horizontal. */