diff --git a/src/client/hud/layers/WinModal.ts b/src/client/hud/layers/WinModal.ts index 2ac37325f..b401fc654 100644 --- a/src/client/hud/layers/WinModal.ts +++ b/src/client/hud/layers/WinModal.ts @@ -18,7 +18,6 @@ import { resolveCosmetics, } from "../../Cosmetics"; import { crazyGamesSDK } from "../../CrazyGamesSDK"; -import { Platform } from "../../Platform"; import { SendWinnerEvent } from "../../Transport"; import { GameView } from "../../view"; @@ -61,16 +60,18 @@ export class WinModal extends LitElement implements Controller { return html`
-

+

${this._title || ""}

- ${this.innerHtml()} +
+ ${this.innerHtml()} +
${translateText("win_modal.territory_pattern")}

-
${this.patternContent}
+
+
+ ${this.patternContent} +
+
`; } @@ -170,13 +177,12 @@ export class WinModal extends LitElement implements Controller { return; } - // Shuffle the array and take patterns based on screen size + // Shuffle the array and take patterns. Will always be 3 wide to allow scrolling const shuffled = [...purchasable].sort(() => Math.random() - 0.5); - const maxPatterns = Platform.isMobileWidth ? 1 : 3; - const selected = shuffled.slice(0, Math.min(maxPatterns, shuffled.length)); + const selected = shuffled.slice(0, Math.min(3, shuffled.length)); this.patternContent = html` -
+
${selected.map( (r) => html`