Skip to content

Commit 9073227

Browse files
committed
fix(app): match peripherals card to instrument card behavior
1 parent 78ef965 commit 9073227

File tree

2 files changed

+16
-7
lines changed

2 files changed

+16
-7
lines changed

app/src/organisms/Desktop/Devices/Peripherals/index.tsx

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,13 @@ export function Peripherals({
2121
<StyledText desktopStyle="bodyLargeSemiBold">
2222
{t('peripherals')}
2323
</StyledText>
24-
<CameraCard
25-
isFlex={isFlex}
26-
robotName={robotName}
27-
isRobotBusy={isRobotBusy}
28-
/>
24+
<div className={styles.card_column}>
25+
<CameraCard
26+
isFlex={isFlex}
27+
robotName={robotName}
28+
isRobotBusy={isRobotBusy}
29+
/>
30+
</div>
2931
</div>
3032
)
3133
}

app/src/organisms/Desktop/Devices/Peripherals/inputdevices.module.css

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,18 @@
99
gap: var(--spacing-16);
1010
}
1111

12+
.card_column {
13+
display: flex;
14+
flex: 0.5;
15+
gap: var(--spacing-8);
16+
}
17+
1218
.card_container {
1319
display: flex;
14-
width: 19.969rem;
20+
flex: 0.5;
1521
border-radius: var(--border-radius-8);
1622
background-color: var(--grey-10);
23+
gap: var(--spacing-8);
1724
}
1825

1926
.card_content_container {
@@ -26,7 +33,7 @@
2633
.card_content_text_container {
2734
display: flex;
2835
flex-direction: column;
29-
padding-right: var(--spacing-24);
36+
padding-right: var(--spacing-26);
3037
gap: var(--spacing-8);
3138
}
3239

0 commit comments

Comments
 (0)