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 <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} />