mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-25 03:29:51 +01:00
fix: gap alignemnt
This commit is contained in:
1 parent
0546ddefbd
commit
d8431fb620
1 file changed
+22
-20
@@ -52,21 +52,11 @@ function LayerEntry({
|
|||||||
|
|
||||||
<td>
|
<td>
|
||||||
{layer.type === null && (
|
{layer.type === null && (
|
||||||
<>
|
<Text size="2" color={shotStatusColor}>
|
||||||
<Text size="2" color={shotStatusColor}>
|
{literals(strings.common.units.mm, [
|
||||||
{literals(strings.common.units.mm, [
|
Math.round(layer.distance * 1000).toLocaleString(locale),
|
||||||
Math.round(layer.distance * 1000).toLocaleString(locale),
|
])}
|
||||||
])}
|
</Text>
|
||||||
</Text>
|
|
||||||
|
|
||||||
<Text size="2" color="gray">
|
|
||||||
{literals(
|
|
||||||
strings.website.tools.tankopedia.sandbox.dynamic.shot_card.stats
|
|
||||||
.ricochet_loss,
|
|
||||||
[Math.max(-100, -50 * layer.distance).toFixed(0)],
|
|
||||||
)}
|
|
||||||
</Text>
|
|
||||||
</>
|
|
||||||
)}
|
)}
|
||||||
|
|
||||||
{layer.type === ArmorType.External && (
|
{layer.type === ArmorType.External && (
|
||||||
@@ -93,9 +83,19 @@ function LayerEntry({
|
|||||||
)}
|
)}
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
{(layer.type === ArmorType.Primary ||
|
<td>
|
||||||
layer.type === ArmorType.Spaced) && (
|
{layer.type === null && (
|
||||||
<td>
|
<Text size="2" color="gray">
|
||||||
|
{literals(
|
||||||
|
strings.website.tools.tankopedia.sandbox.dynamic.shot_card.stats
|
||||||
|
.ricochet_loss,
|
||||||
|
[Math.max(-100, -50 * layer.distance).toFixed(0)],
|
||||||
|
)}
|
||||||
|
</Text>
|
||||||
|
)}
|
||||||
|
|
||||||
|
{(layer.type === ArmorType.Primary ||
|
||||||
|
layer.type === ArmorType.Spaced) && (
|
||||||
<Text size="2" color="gray">
|
<Text size="2" color="gray">
|
||||||
{literals(
|
{literals(
|
||||||
strings.website.tools.tankopedia.sandbox.dynamic.shot_card.stats
|
strings.website.tools.tankopedia.sandbox.dynamic.shot_card.stats
|
||||||
@@ -103,8 +103,8 @@ function LayerEntry({
|
|||||||
[Math.round(layer.thickness).toLocaleString(locale)],
|
[Math.round(layer.thickness).toLocaleString(locale)],
|
||||||
)}
|
)}
|
||||||
</Text>
|
</Text>
|
||||||
</td>
|
)}
|
||||||
)}
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@@ -118,6 +118,8 @@ export function ShotDisplayCard({ shot, ...props }: ShotDisplayCardProps) {
|
|||||||
|
|
||||||
if (!shot) return null;
|
if (!shot) return null;
|
||||||
|
|
||||||
|
console.log(shot);
|
||||||
|
|
||||||
const outTitleColor = shot.out
|
const outTitleColor = shot.out
|
||||||
? shotStatusColors[shot.out.status]
|
? shotStatusColors[shot.out.status]
|
||||||
: undefined;
|
: undefined;
|
||||||
|
|||||||
Reference in new issue
Block a user