Skip to content

Commit

Permalink
Improve appearance of header
Browse files Browse the repository at this point in the history
  • Loading branch information
mrica-equinor authored and andchiind committed Nov 13, 2023
1 parent dcc7d71 commit 5e2102d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,19 @@ const HeaderSection = styled(Card)`
display: flex;
top: 60px;
flex-direction: column;
gap: 0.4rem;
gap: 10px;
position: sticky;
margin-top: auto;
padding: 15px 0px 15px 0px;
background-color: white;
z-index: 1;
border-color: white;
box-shadow: none;
border-bottom: 1px solid ${tokens.colors.interactive.disabled__border.hex};
border-radius: 0px;
`
const TitleSection = styled.div`
display: flex;
align-items: center;
gap: 10px;
gap: 20px;
`
const InfoSection = styled.div`
display: flex;
Expand Down Expand Up @@ -117,11 +119,7 @@ export function MissionHeader({ mission }: MissionHeaderProps) {
{isMissionActive && <MissionControlButtons mission={mission} />}
{mission.isCompleted && <MissionRestartButton mission={mission} />}
</TitleSection>
<Typography
variant="body_long_italic"
group="paragraph"
color={tokens.colors.text.static_icons__secondary.hex}
>
<Typography variant="body_long" group="paragraph" color={tokens.colors.text.static_icons__secondary.hex}>
{mission.description && `${translatedDescription}: ${mission.description}`}
</Typography>
<StatusReason mission={mission}></StatusReason>
Expand Down
1 change: 0 additions & 1 deletion frontend/src/components/Pages/MissionPage/MissionPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ const StyledMissionPage = styled.div`
flex-direction: column;
gap: 1rem;
margin: 2rem;
margin-right: 0;
`
const TaskAndMapSection = styled.div`
display: flex;
Expand Down

0 comments on commit 5e2102d

Please sign in to comment.