diff --git a/packages/viewer/package.json b/packages/viewer/package.json index ba9ad6c..5d177a4 100644 --- a/packages/viewer/package.json +++ b/packages/viewer/package.json @@ -1,6 +1,6 @@ { "name": "outpost-viewer", - "version": "0.1.21", + "version": "0.1.22", "description": "Browser viewer for the Outpost game on boardgamers.space", "license": "AGPL-3.0", "files": [ diff --git a/packages/viewer/src/lib/MarketPanel.svelte b/packages/viewer/src/lib/MarketPanel.svelte index 3332ba4..609cab7 100644 --- a/packages/viewer/src/lib/MarketPanel.svelte +++ b/packages/viewer/src/lib/MarketPanel.svelte @@ -1,4 +1,5 @@ +{#snippet remainingUpgrades()} +
+ {#each supplyByEra as x (x.era)} + + {["", "I", "II", "III"][x.era]} + + {#each x.counts as c (c.u)} + {@const spec = UPGRADE_SPECS[c.u]} + + {spec.name} ×{c.n} + + {/each} + {/each} + {#if supplyByEra.length === 0} + Supply exhausted + {/if} +
+{/snippet} +
Colony upgrades for auction
{#if state.market.length === 0} @@ -143,32 +171,18 @@ {/each}
{/if} -
- Remaining upgrades -
- {#each supplyByEra as x (x.era)} - - {["", "I", "II", "III"][x.era]} - - {#each x.counts as c (c.u)} - {@const spec = UPGRADE_SPECS[c.u]} - - {spec.name} ×{c.n} - - {/each} - {/each} - {#if supplyByEra.length === 0} - Supply exhausted - {/if} -
-
+ {#if desktop.current} +
+
Remaining upgrades
+ {@render remainingUpgrades()} +
+ {:else} +
+ Remaining upgrades + {@render remainingUpgrades()} +
+ {/if} + {#if state.kickerMarket.length > 0}
Kicker cards — era {["", "I", "II", "III"][state.kickerEra]}
@@ -527,6 +541,11 @@ } } + .supply-label { + font-size: 12px; + color: var(--text-mid); + padding: 10px 4px; + } .supply-details summary { cursor: pointer; font-size: 12px;