diff --git a/packages/viewer/src/lib/PlayerPanel.svelte b/packages/viewer/src/lib/PlayerPanel.svelte
index 8c21833..3c5651f 100644
--- a/packages/viewer/src/lib/PlayerPanel.svelte
+++ b/packages/viewer/src/lib/PlayerPanel.svelte
@@ -321,18 +321,19 @@
{/if}
{#if isMe && store.settings !== null}
-
+
+ Pass auctions I can't afford
+
{/if}
@@ -340,22 +341,53 @@
.auto-pass {
display: flex;
align-items: center;
- gap: 7px;
- min-height: 32px;
+ align-self: flex-start;
+ gap: 8px;
+ min-height: 40px;
+ max-width: 100%;
+ padding: 6px 9px;
font-size: 12px;
line-height: 1.3;
+ text-align: start;
color: var(--text-mid);
+ background: var(--bg-panel);
cursor: pointer;
touch-action: manipulation;
}
- .auto-pass input {
- width: 16px;
- height: 16px;
- margin: 0;
- flex-shrink: 0;
- accent-color: var(--gold);
+ .auto-pass[aria-checked="true"] {
+ color: var(--text);
+ border-color: var(--gold);
+ background: color-mix(in srgb, var(--gold) 10%, var(--bg-panel));
}
- .auto-pass:has(input:disabled) {
+ .auto-pass:focus-visible {
+ outline: 2px solid var(--gold);
+ outline-offset: 2px;
+ }
+ .auto-pass-track {
+ display: flex;
+ align-items: center;
+ flex: 0 0 30px;
+ height: 18px;
+ padding: 2px;
+ border: 1px solid var(--text-dim);
+ border-radius: 9px;
+ background: var(--line);
+ }
+ .auto-pass-thumb {
+ width: 12px;
+ height: 12px;
+ border-radius: 50%;
+ background: var(--text-mid);
+ }
+ .auto-pass[aria-checked="true"] .auto-pass-track {
+ justify-content: flex-end;
+ border-color: var(--gold);
+ background: var(--gold);
+ }
+ .auto-pass[aria-checked="true"] .auto-pass-thumb {
+ background: var(--bg);
+ }
+ .auto-pass:disabled {
cursor: default;
opacity: 0.6;
}
diff --git a/packages/viewer/src/localization/da.json b/packages/viewer/src/localization/da.json
index f6226b7..7089a27 100644
--- a/packages/viewer/src/localization/da.json
+++ b/packages/viewer/src/localization/da.json
@@ -1178,6 +1178,6 @@
"How to buy": "How to buy",
"Remaining upgrades": "Remaining upgrades",
"Remaining Kicker cards": "Remaining Kicker cards",
- "Pass if I can't pay": "Pas, hvis jeg ikke kan betale",
+ "Pass auctions I can't afford": "Pas på auktioner, jeg ikke har råd til",
"Automatically pass an auction when your cards and discounts cannot cover the required bid. This can reveal that your hand is too weak.": "Pas automatisk på en auktion, når dine kort og rabatter ikke kan dække det krævede bud. Det kan afsløre, at din hånd er for svag."
}
diff --git a/packages/viewer/src/localization/de.json b/packages/viewer/src/localization/de.json
index 0fdb65d..a9f0616 100644
--- a/packages/viewer/src/localization/de.json
+++ b/packages/viewer/src/localization/de.json
@@ -1178,6 +1178,6 @@
"How to buy": "How to buy",
"Remaining upgrades": "Remaining upgrades",
"Remaining Kicker cards": "Remaining Kicker cards",
- "Pass if I can't pay": "Passen, wenn ich nicht zahlen kann",
+ "Pass auctions I can't afford": "Bei unbezahlbaren Auktionen passen",
"Automatically pass an auction when your cards and discounts cannot cover the required bid. This can reveal that your hand is too weak.": "Bei einer Auktion automatisch passen, wenn deine Karten und Rabatte das erforderliche Gebot nicht decken. Das kann verraten, dass deine Hand zu schwach ist."
}
diff --git a/packages/viewer/src/localization/el.json b/packages/viewer/src/localization/el.json
index f2b9609..521cc76 100644
--- a/packages/viewer/src/localization/el.json
+++ b/packages/viewer/src/localization/el.json
@@ -1178,6 +1178,6 @@
"How to buy": "How to buy",
"Remaining upgrades": "Remaining upgrades",
"Remaining Kicker cards": "Remaining Kicker cards",
- "Pass if I can't pay": "Πάσο αν δεν μπορώ να πληρώσω",
+ "Pass auctions I can't afford": "Πάσο σε δημοπρασίες που δεν μπορώ να πληρώσω",
"Automatically pass an auction when your cards and discounts cannot cover the required bid. This can reveal that your hand is too weak.": "Αυτόματο πάσο σε δημοπρασία όταν οι κάρτες και οι εκπτώσεις σου δεν καλύπτουν την απαιτούμενη προσφορά. Αυτό μπορεί να αποκαλύψει ότι το χέρι σου είναι πολύ αδύναμο."
}
diff --git a/packages/viewer/src/localization/en.json b/packages/viewer/src/localization/en.json
index a06edbf..bdeb533 100644
--- a/packages/viewer/src/localization/en.json
+++ b/packages/viewer/src/localization/en.json
@@ -1178,6 +1178,6 @@
"How to buy": "How to buy",
"Remaining upgrades": "Remaining upgrades",
"Remaining Kicker cards": "Remaining Kicker cards",
- "Pass if I can't pay": "Pass if I can't pay",
+ "Pass auctions I can't afford": "Pass auctions I can't afford",
"Automatically pass an auction when your cards and discounts cannot cover the required bid. This can reveal that your hand is too weak.": "Automatically pass an auction when your cards and discounts cannot cover the required bid. This can reveal that your hand is too weak."
}
diff --git a/packages/viewer/src/localization/fa.json b/packages/viewer/src/localization/fa.json
index 81ffe98..f2efbc2 100644
--- a/packages/viewer/src/localization/fa.json
+++ b/packages/viewer/src/localization/fa.json
@@ -1178,6 +1178,6 @@
"How to buy": "روش خرید",
"Remaining upgrades": "ارتقاهای باقیمانده",
"Remaining Kicker cards": "کارتهای کیکر باقیمانده",
- "Pass if I can't pay": "اگر توان پرداخت ندارم، انصراف بده",
+ "Pass auctions I can't afford": "در مزایدههایی که توان پرداخت ندارم، انصراف بده",
"Automatically pass an auction when your cards and discounts cannot cover the required bid. This can reveal that your hand is too weak.": "وقتی کارتها و تخفیفهایتان مبلغ پیشنهاد لازم را پوشش نمیدهند، خودکار از حراج انصراف دهید. این کار ممکن است ضعیف بودن دستتان را آشکار کند."
}
diff --git a/packages/viewer/src/localization/fr.json b/packages/viewer/src/localization/fr.json
index ffc9cff..b9ff277 100644
--- a/packages/viewer/src/localization/fr.json
+++ b/packages/viewer/src/localization/fr.json
@@ -1178,6 +1178,6 @@
"How to buy": "How to buy",
"Remaining upgrades": "Remaining upgrades",
"Remaining Kicker cards": "Remaining Kicker cards",
- "Pass if I can't pay": "Passer si je ne peux pas payer",
+ "Pass auctions I can't afford": "Passer les enchères hors budget",
"Automatically pass an auction when your cards and discounts cannot cover the required bid. This can reveal that your hand is too weak.": "Passer automatiquement une enchère si vos cartes et réductions ne permettent pas de couvrir l’enchère requise. Cela peut révéler que votre main est trop faible."
}
diff --git a/packages/viewer/src/localization/hi.json b/packages/viewer/src/localization/hi.json
index 26ad0c8..4a36398 100644
--- a/packages/viewer/src/localization/hi.json
+++ b/packages/viewer/src/localization/hi.json
@@ -1178,6 +1178,6 @@
"How to buy": "How to buy",
"Remaining upgrades": "Remaining upgrades",
"Remaining Kicker cards": "Remaining Kicker cards",
- "Pass if I can't pay": "भुगतान न कर सकूँ तो पास करें",
+ "Pass auctions I can't afford": "जिन नीलामियों का भुगतान न कर सकूँ, उनमें पास करें",
"Automatically pass an auction when your cards and discounts cannot cover the required bid. This can reveal that your hand is too weak.": "जब आपके कार्ड और छूट आवश्यक बोली के लिए पर्याप्त न हों, तो नीलामी में अपने-आप पास करें। इससे पता चल सकता है कि आपका हाथ कमज़ोर है।"
}
diff --git a/packages/viewer/src/localization/it.json b/packages/viewer/src/localization/it.json
index 9461361..23370b3 100644
--- a/packages/viewer/src/localization/it.json
+++ b/packages/viewer/src/localization/it.json
@@ -1178,6 +1178,6 @@
"How to buy": "How to buy",
"Remaining upgrades": "Remaining upgrades",
"Remaining Kicker cards": "Remaining Kicker cards",
- "Pass if I can't pay": "Passa se non posso pagare",
+ "Pass auctions I can't afford": "Passa nelle aste che non posso permettermi",
"Automatically pass an auction when your cards and discounts cannot cover the required bid. This can reveal that your hand is too weak.": "Passa automaticamente in un’asta quando le tue carte e i tuoi sconti non coprono l’offerta richiesta. Questo può rivelare che la tua mano è troppo debole."
}
diff --git a/packages/viewer/src/localization/ko.json b/packages/viewer/src/localization/ko.json
index 130a336..c77861d 100644
--- a/packages/viewer/src/localization/ko.json
+++ b/packages/viewer/src/localization/ko.json
@@ -1178,6 +1178,6 @@
"How to buy": "How to buy",
"Remaining upgrades": "Remaining upgrades",
"Remaining Kicker cards": "Remaining Kicker cards",
- "Pass if I can't pay": "지불할 수 없으면 패스",
+ "Pass auctions I can't afford": "감당할 수 없는 경매는 패스",
"Automatically pass an auction when your cards and discounts cannot cover the required bid. This can reveal that your hand is too weak.": "카드와 할인으로 필요한 입찰 금액을 충당할 수 없으면 경매에서 자동으로 패스합니다. 이로 인해 패가 약하다는 사실이 드러날 수 있습니다."
}
diff --git a/packages/viewer/src/localization/nl.json b/packages/viewer/src/localization/nl.json
index 361bc2b..c736969 100644
--- a/packages/viewer/src/localization/nl.json
+++ b/packages/viewer/src/localization/nl.json
@@ -1178,6 +1178,6 @@
"How to buy": "How to buy",
"Remaining upgrades": "Remaining upgrades",
"Remaining Kicker cards": "Remaining Kicker cards",
- "Pass if I can't pay": "Pas als ik niet kan betalen",
+ "Pass auctions I can't afford": "Pas bij veilingen die ik niet kan betalen",
"Automatically pass an auction when your cards and discounts cannot cover the required bid. This can reveal that your hand is too weak.": "Pas automatisch bij een veiling als je kaarten en kortingen het vereiste bod niet dekken. Dit kan verraden dat je hand te zwak is."
}
diff --git a/packages/viewer/src/localization/pl.json b/packages/viewer/src/localization/pl.json
index 301c029..e6bedbf 100644
--- a/packages/viewer/src/localization/pl.json
+++ b/packages/viewer/src/localization/pl.json
@@ -1178,6 +1178,6 @@
"How to buy": "How to buy",
"Remaining upgrades": "Remaining upgrades",
"Remaining Kicker cards": "Remaining Kicker cards",
- "Pass if I can't pay": "Pasuj, jeśli nie mogę zapłacić",
+ "Pass auctions I can't afford": "Pasuj w aukcjach, na które mnie nie stać",
"Automatically pass an auction when your cards and discounts cannot cover the required bid. This can reveal that your hand is too weak.": "Automatycznie pasuj w licytacji, gdy twoje karty i zniżki nie wystarczają na wymaganą ofertę. Może to ujawnić, że twoja ręka jest zbyt słaba."
}
diff --git a/packages/viewer/src/localization/pt-BR.json b/packages/viewer/src/localization/pt-BR.json
index 13f2491..4827464 100644
--- a/packages/viewer/src/localization/pt-BR.json
+++ b/packages/viewer/src/localization/pt-BR.json
@@ -1178,6 +1178,6 @@
"How to buy": "How to buy",
"Remaining upgrades": "Remaining upgrades",
"Remaining Kicker cards": "Remaining Kicker cards",
- "Pass if I can't pay": "Passar se eu não puder pagar",
+ "Pass auctions I can't afford": "Passar em leilões que não posso pagar",
"Automatically pass an auction when your cards and discounts cannot cover the required bid. This can reveal that your hand is too weak.": "Passe automaticamente em um leilão quando suas cartas e descontos não cobrirem o lance necessário. Isso pode revelar que sua mão é fraca demais."
}
diff --git a/packages/viewer/src/localization/ro.json b/packages/viewer/src/localization/ro.json
index ba77683..0252d85 100644
--- a/packages/viewer/src/localization/ro.json
+++ b/packages/viewer/src/localization/ro.json
@@ -1178,6 +1178,6 @@
"How to buy": "How to buy",
"Remaining upgrades": "Remaining upgrades",
"Remaining Kicker cards": "Remaining Kicker cards",
- "Pass if I can't pay": "Pas dacă nu pot plăti",
+ "Pass auctions I can't afford": "Pas la licitațiile pe care nu mi le permit",
"Automatically pass an auction when your cards and discounts cannot cover the required bid. This can reveal that your hand is too weak.": "Pasează automat la o licitație când cărțile și reducerile tale nu acoperă oferta necesară. Asta poate dezvălui că mâna ta este prea slabă."
}
diff --git a/packages/viewer/src/localization/ru.json b/packages/viewer/src/localization/ru.json
index e07c29a..810ef5e 100644
--- a/packages/viewer/src/localization/ru.json
+++ b/packages/viewer/src/localization/ru.json
@@ -1178,6 +1178,6 @@
"How to buy": "How to buy",
"Remaining upgrades": "Remaining upgrades",
"Remaining Kicker cards": "Remaining Kicker cards",
- "Pass if I can't pay": "Пасовать, если не могу заплатить",
+ "Pass auctions I can't afford": "Пасовать на аукционах, если не хватает средств",
"Automatically pass an auction when your cards and discounts cannot cover the required bid. This can reveal that your hand is too weak.": "Автоматически пасовать на аукционе, если ваших карт и скидок недостаточно для требуемой ставки. Это может выдать слабость вашей руки."
}
diff --git a/packages/viewer/src/localization/vi.json b/packages/viewer/src/localization/vi.json
index 1f7fa8c..624e854 100644
--- a/packages/viewer/src/localization/vi.json
+++ b/packages/viewer/src/localization/vi.json
@@ -1178,6 +1178,6 @@
"How to buy": "How to buy",
"Remaining upgrades": "Remaining upgrades",
"Remaining Kicker cards": "Remaining Kicker cards",
- "Pass if I can't pay": "Bỏ lượt nếu không đủ tiền",
+ "Pass auctions I can't afford": "Bỏ qua đấu giá khi không đủ tiền",
"Automatically pass an auction when your cards and discounts cannot cover the required bid. This can reveal that your hand is too weak.": "Tự động bỏ lượt đấu giá khi bài và mức giảm giá của bạn không đủ cho giá thầu cần thiết. Điều này có thể tiết lộ rằng bài trên tay bạn quá yếu."
}
diff --git a/packages/viewer/src/localization/zh-TW.json b/packages/viewer/src/localization/zh-TW.json
index d1ff9a3..6636cf1 100644
--- a/packages/viewer/src/localization/zh-TW.json
+++ b/packages/viewer/src/localization/zh-TW.json
@@ -1178,6 +1178,6 @@
"How to buy": "How to buy",
"Remaining upgrades": "Remaining upgrades",
"Remaining Kicker cards": "Remaining Kicker cards",
- "Pass if I can't pay": "無法支付時自動放棄",
+ "Pass auctions I can't afford": "自動放棄無力支付的拍賣",
"Automatically pass an auction when your cards and discounts cannot cover the required bid. This can reveal that your hand is too weak.": "當手牌和折扣不足以支付所需的出價時,自動放棄競標。這可能讓其他玩家知道你的手牌價值不足。"
}
diff --git a/tests/mobile-scroll.mjs b/tests/mobile-scroll.mjs
index 8ad1721..cbb59da 100644
--- a/tests/mobile-scroll.mjs
+++ b/tests/mobile-scroll.mjs
@@ -116,8 +116,8 @@ try {
);
assert.equal(await frame.locator(".factory-buttons").count(), 1, "disabled tap does not open a purchase");
await pageScrollsFrom(frame.locator(".me .pcard").first(), "hand card");
- await pageScrollsFrom(frame.locator(".auto-pass"), "auto-pass label");
- await pageScrollsFrom(frame.locator(".auto-pass input"), "auto-pass checkbox");
+ await pageScrollsFrom(frame.locator(".auto-pass-label"), "auto-pass label");
+ await pageScrollsFrom(frame.locator(".auto-pass-track"), "auto-pass switch");
assert.equal(await frame.evaluate(() => settingsChanges.length), 0, "swiping does not change settings");
await pageScrollsFrom(frame.locator(".market .ucard").first(), "market card");
await pageScrollsFrom(frame.locator(".factory-buttons button:not(:disabled) svg").first(), "resource icon");
diff --git a/tests/protocol-smoke.mjs b/tests/protocol-smoke.mjs
index 6b0199a..cc1c055 100644
--- a/tests/protocol-smoke.mjs
+++ b/tests/protocol-smoke.mjs
@@ -62,7 +62,7 @@ try {
stripSecret(state, 0)
);
await page.waitForFunction(() => events.filter((e) => e.name === "ready").length === 1);
- const autoPass = page.locator('input[name="autoPassBids"]');
+ const autoPass = page.getByRole("switch");
assert.equal(await autoPass.count(), 0, "wait for the host's settings before showing the control");
await page.evaluate(() => emitter.emit("settings", { autoPassBids: true }));
assert.equal(await autoPass.isChecked(), true);