Skip to content

Commit

Permalink
fix: Show border bottom only if dashboard tips is shown (#2076)
Browse files Browse the repository at this point in the history
  • Loading branch information
frankli-dev authored Apr 11, 2024
1 parent 1418899 commit 459da24
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/pages/Overview/StakeStatus/Wrappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import styled from 'styled-components';
import { PageWidthMediumThreshold } from 'consts';

export const StatusWrapper = styled.div`
export const StatusWrapper = styled.div<{ borderBottom: boolean }>`
display: flex;
flex-wrap: wrap;
padding: 1.5rem 1.5rem 0 1.5rem;
Expand All @@ -30,7 +30,8 @@ export const StatusWrapper = styled.div`
}
> section {
border-bottom: 1px solid var(--border-primary-color);
border-bottom: ${(props) =>
props.borderBottom ? '1px solid var(--border-primary-color)' : 'none'};
padding-bottom: 0.75rem;
@media (max-width: ${PageWidthMediumThreshold}px) {
padding-bottom: 0.5rem;
Expand Down
2 changes: 1 addition & 1 deletion src/pages/Overview/StakeStatus/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export const StakeStatus = () => {

return (
<CardWrapper style={{ padding: 0 }}>
<StatusWrapper>
<StatusWrapper borderBottom={showTips}>
<RowSection secondary>
<section>
<NominationStatus showButtons={false} />
Expand Down

0 comments on commit 459da24

Please sign in to comment.