Skip to content

Commit

Permalink
Fix frontend padding
Browse files Browse the repository at this point in the history
  • Loading branch information
mrica-equinor committed Nov 2, 2023
1 parent 5dd8bcc commit 583d321
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,10 @@ const HorizontalContent = styled.div`
`
const HorizontalNonButtonContent = styled.div`
display: grid;
grid-template-columns: 20px 400px auto 90px 180px;
grid-template-columns: 20px 380px auto auto 180px;
align-items: center;
padding-left: 10px;
padding: 4px 0px 4px 10px;
gap: 10px;
`

const StyledDialogContent = styled.div`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ const StyledMissionCard = styled(Card)`
const StyledTitle = styled(Card)`
width: 70%;
height: 80%;
padding: 10px;
:hover {
background-color: #deedee;
}
Expand Down Expand Up @@ -62,9 +61,11 @@ export function OngoingMissionCard({ mission }: MissionProps) {
<StyledMissionCard variant="default" style={{ boxShadow: tokens.elevation.raised }}>
<TopContent>
<StyledTitle variant="default" onClick={routeChange}>
<Typography variant="h6" color="primary">
{mission.name}
</Typography>
<div style={{ padding: '10px', borderRadius: '3px' }}>
<Typography variant="h6" color="primary">
{mission.name}
</Typography>
</div>
</StyledTitle>
<div>
<MissionControlButtons mission={mission} />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ const StyledCard = styled(Card)`
`
const HoverableStyledCard = styled(Card)`
width: 220px;
padding: 8px;
:hover {
background-color: #deedee;
}
Expand All @@ -47,7 +46,7 @@ const VerticalContent = styled.div<{ $alignItems?: string }>`

function cardContent({ robot }: RobotProps) {
return (
<div>
<div style={{ padding: '8px' }}>
<RobotImage robotType={robot.model.type} height="200px" />
<HorizontalContent>
<VerticalContent $alignItems="start">
Expand Down Expand Up @@ -80,7 +79,7 @@ export function RobotStatusCard({ robot }: RobotProps) {
navigate(path)
}
return (
<HoverableStyledCard variant="default" style={{ boxShadow: tokens.elevation.raised }} onClick={goToRobot}>
<HoverableStyledCard style={{ boxShadow: tokens.elevation.raised }} onClick={goToRobot}>
{cardContent({ robot })}
</HoverableStyledCard>
)
Expand All @@ -89,7 +88,7 @@ export function RobotStatusCard({ robot }: RobotProps) {
export function RobotStatusCardPlaceholder() {
const { TranslateText } = useLanguageContext()
return (
<StyledCard variant="default" style={{ boxShadow: tokens.elevation.raised }}>
<StyledCard style={{ boxShadow: tokens.elevation.raised }}>
<div>
<RobotImage robotType={RobotType.NoneType} />
<Typography variant="h5" color="disabled">
Expand Down

0 comments on commit 583d321

Please sign in to comment.