mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-21 02:37:05 +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
|
||||
style={{
|
||||
width: 300,
|
||||
width: shot.thicknesses.length > 1 ? 300 : 200,
|
||||
}}
|
||||
>
|
||||
<Flex direction="column" gap="1">
|
||||
@@ -103,15 +103,17 @@ export function ShotDisplay() {
|
||||
<Flex
|
||||
direction="column"
|
||||
style={{
|
||||
paddingLeft: 8,
|
||||
paddingLeft: shot.thicknesses.length > 1 ? 8 : undefined,
|
||||
}}
|
||||
>
|
||||
{shot.thicknesses.map(({ nominal, angled, type }, index) => (
|
||||
<Flex gap="2">
|
||||
<Text>
|
||||
{index + 1}. {type[0].toUpperCase()}
|
||||
{type.slice(1)}
|
||||
</Text>
|
||||
{shot.thicknesses.length > 1 && (
|
||||
<Text>
|
||||
{index + 1}. {type[0].toUpperCase()}
|
||||
{type.slice(1)}
|
||||
</Text>
|
||||
)}
|
||||
|
||||
<Flex gap="1">
|
||||
<NominalPenetration width={24} height={24} />
|
||||
|
||||
Reference in new issue
Block a user