Skip to content

Commit

Permalink
Improve styling
Browse files Browse the repository at this point in the history
  • Loading branch information
vhande committed Oct 11, 2024
1 parent c9dcdac commit 4846c40
Showing 1 changed file with 15 additions and 16 deletions.
31 changes: 15 additions & 16 deletions src/pages/dashboard/DashboardRow.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -170,22 +170,21 @@ export const DashboardRow = ({
</Inline>
</Stack>
)}
{score && (
<Inline
width="22.5%"
justifyContent="flex-start"
alignItems="center"
>
<DynamicBarometerIcon
minimumScore={minimumScore}
score={score}
size={30}
margin={{ top: 0.0, bottom: 0.05, left: 0.4, right: 0.4 }}
pointerWidth={100}
/>
<Text marginLeft={3}>{`${score} / 100`}</Text>
</Inline>
)}
<Inline
width="22.5%"
justifyContent="flex-start"
alignItems="center"
css={!score && `visibility: hidden`}
>
<DynamicBarometerIcon
minimumScore={minimumScore}
score={score}
size={30}
margin={{ top: 0.0, bottom: 0.05, left: 0.4, right: 0.4 }}
pointerWidth={100}
/>
<Text marginLeft={3}>{`${score} / 100`}</Text>
</Inline>
<Inline width="22.5%" justifyContent="flex-start" alignItems="center">
<StatusIndicator label={status.label} color={status.color} />
</Inline>
Expand Down

0 comments on commit 4846c40

Please sign in to comment.