feat: cleaner 1 layer penetration

This commit is contained in:
TrèsAbhi committed 2024-02-02 23:10:43 -06:00
1 parent d54c08dc4e
commit 2e888525c6
1 file changed
+8 -6
+8 -6
View File
@@ -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} />