fix: the coin box fits its narrow column (held, paid for and the next village's total as short rows), the volley label wraps on phones so every unit column shows, and a defence report's no-coins line sits flush with the text
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
a63f0a2fd8
commit
d78dd75e60
|
|
@ -136,8 +136,8 @@ const woundedBack = computed(() => (props.report.wounded ? formatArrival(Date.pa
|
||||||
<!-- Loyalty at 0 takes the village only while the attacker's coins pay for another one. -->
|
<!-- Loyalty at 0 takes the village only while the attacker's coins pay for another one. -->
|
||||||
<p
|
<p
|
||||||
v-if="report.loyalty?.no_coins && !report.loyalty.conquered"
|
v-if="report.loyalty?.no_coins && !report.loyalty.conquered"
|
||||||
class="border px-2 py-0.5 font-semibold"
|
class="font-semibold"
|
||||||
:class="defense ? 'border-transparent px-0 text-ink-700' : 'border-gold-600 bg-gold-400 text-ink-900'"
|
:class="defense ? 'text-ink-700' : 'border border-gold-600 bg-gold-400 px-2 py-0.5 text-ink-900'"
|
||||||
>
|
>
|
||||||
{{ $t(defense ? 'reports.battle.no_coins_defense' : 'reports.battle.no_coins', { before: report.loyalty.before, after: report.loyalty.after }) }}
|
{{ $t(defense ? 'reports.battle.no_coins_defense' : 'reports.battle.no_coins', { before: report.loyalty.before, after: report.loyalty.after }) }}
|
||||||
</p>
|
</p>
|
||||||
|
|
|
||||||
|
|
@ -37,7 +37,7 @@ const anyShot = computed(() => Object.values(props.shot ?? {}).some((n) => n > 0
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr v-if="shot && anyShot" class="border-t border-parchment-300">
|
<tr v-if="shot && anyShot" class="border-t border-parchment-300">
|
||||||
<th class="pr-3 py-1 text-left text-xs font-semibold whitespace-nowrap text-ink-500">{{ $t('reports.battle.volley') }}</th>
|
<th class="pr-3 py-1 text-left text-xs font-semibold text-ink-500">{{ $t('reports.battle.volley') }}</th>
|
||||||
<td v-for="unit in columns" :key="unit" class="px-1.5 py-1 text-center" :class="shot[unit] ? 'text-blood-700' : 'text-ink-400'">
|
<td v-for="unit in columns" :key="unit" class="px-1.5 py-1 text-center" :class="shot[unit] ? 'text-blood-700' : 'text-ink-400'">
|
||||||
{{ shot[unit] ?? 0 }}
|
{{ shot[unit] ?? 0 }}
|
||||||
</td>
|
</td>
|
||||||
|
|
|
||||||
|
|
@ -29,8 +29,12 @@ const room = computed(() => props.conquest.slots > props.conquest.used)
|
||||||
<td class="text-right font-semibold tabular-nums">{{ conquest.coins }}</td>
|
<td class="text-right font-semibold tabular-nums">{{ conquest.coins }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="whitespace-nowrap">{{ $t('village.conquest.villages') }}</td>
|
<td class="whitespace-nowrap">{{ $t('village.conquest.held') }}</td>
|
||||||
<td class="text-right whitespace-nowrap tabular-nums">{{ $t('village.conquest.villages_value', { used: conquest.used, slots: conquest.slots }) }}</td>
|
<td class="text-right tabular-nums">{{ conquest.used }}</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="whitespace-nowrap">{{ $t('village.conquest.paid') }}</td>
|
||||||
|
<td class="text-right tabular-nums">{{ conquest.slots }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="whitespace-nowrap">{{ $t('village.conquest.next_village') }}</td>
|
<td class="whitespace-nowrap">{{ $t('village.conquest.next_village') }}</td>
|
||||||
|
|
|
||||||
|
|
@ -180,13 +180,13 @@ export default {
|
||||||
},
|
},
|
||||||
conquest: {
|
conquest: {
|
||||||
title: 'Coins',
|
title: 'Coins',
|
||||||
about: 'Coins pay for every village beyond your first, and each further village needs more of them. Noblemen need no coins, but at loyalty 0 they only take a village your coins pay for.',
|
about: 'Coins pay for your extra villages, every one beyond your first, and each further one needs more coins. Noblemen need no coins, but at loyalty 0 they only take a village your coins pay for.',
|
||||||
badge: '{used}/{slots} extra villages',
|
badge: '{used}/{slots} extra villages',
|
||||||
coins: 'Coins minted',
|
coins: 'Coins minted',
|
||||||
villages: 'Villages beyond your first',
|
held: 'Extra villages held',
|
||||||
villages_value: '{used} held, {slots} paid for',
|
paid: 'Extra villages paid for',
|
||||||
next_village: 'One more village',
|
next_village: 'Next village needs',
|
||||||
coins_total: '{count} coins in total',
|
coins_total: '{count} in total',
|
||||||
room: 'Your coins pay for another village now.',
|
room: 'Your coins pay for another village now.',
|
||||||
full: 'Your coins pay for no further village: mint more before your noblemen bring loyalty to 0.',
|
full: 'Your coins pay for no further village: mint more before your noblemen bring loyalty to 0.',
|
||||||
coin_cost: 'One coin costs',
|
coin_cost: 'One coin costs',
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue