mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-24 03:59:50 +02:00
feat: cleaner 1 layer penetration
This commit is contained in:
1 parent
d54c08dc4e
commit
2e888525c6
1 file changed
+8
-6
@@ -89,7 +89,7 @@ export function ShotDisplay() {
|
|||||||
>
|
>
|
||||||
<Card
|
<Card
|
||||||
style={{
|
style={{
|
||||||
width: 300,
|
width: shot.thicknesses.length > 1 ? 300 : 200,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<Flex direction="column" gap="1">
|
<Flex direction="column" gap="1">
|
||||||
@@ -103,15 +103,17 @@ export function ShotDisplay() {
|
|||||||
<Flex
|
<Flex
|
||||||
direction="column"
|
direction="column"
|
||||||
style={{
|
style={{
|
||||||
paddingLeft: 8,
|
paddingLeft: shot.thicknesses.length > 1 ? 8 : undefined,
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{shot.thicknesses.map(({ nominal, angled, type }, index) => (
|
{shot.thicknesses.map(({ nominal, angled, type }, index) => (
|
||||||
<Flex gap="2">
|
<Flex gap="2">
|
||||||
<Text>
|
{shot.thicknesses.length > 1 && (
|
||||||
{index + 1}. {type[0].toUpperCase()}
|
<Text>
|
||||||
{type.slice(1)}
|
{index + 1}. {type[0].toUpperCase()}
|
||||||
</Text>
|
{type.slice(1)}
|
||||||
|
</Text>
|
||||||
|
)}
|
||||||
|
|
||||||
<Flex gap="1">
|
<Flex gap="1">
|
||||||
<NominalPenetration width={24} height={24} />
|
<NominalPenetration width={24} height={24} />
|
||||||
|
|||||||
Reference in new issue
Block a user