Skip to content

Commit

Permalink
Merge pull request #1594 from kleros/fix/breadcrumb-alignment
Browse files Browse the repository at this point in the history
fix(web): breadcrumb-alignment-fix-in-court-details
  • Loading branch information
alcercu authored May 29, 2024
2 parents 2d50177 + 95ae551 commit 27853d8
Showing 1 changed file with 5 additions and 14 deletions.
19 changes: 5 additions & 14 deletions web/src/pages/Courts/CourtDetails/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const CourtHeader = styled.h1`
`;

const CourtInfo = styled.div`
display: flex:
display: flex;
flex-direction: column;
gap: 16px;
Expand Down Expand Up @@ -71,13 +71,10 @@ const StyledCard = styled(Card)`
`;

const StyledBreadcrumb = styled(Breadcrumb)`
display: flex;
margin-top: 12px;
align-items: center;
`;

const StyledBreadcrumbSkeleton = styled.div`
margin-top: 12px;
button {
font-size: 16px;
}
`;

const CourtDetails: React.FC = () => {
Expand All @@ -102,13 +99,7 @@ const CourtDetails: React.FC = () => {
<CourtHeader>
<CourtInfo>
{policy ? policy.name : <StyledSkeleton width={200} />}
{items.length > 1 ? (
<StyledBreadcrumb items={items} />
) : (
<StyledBreadcrumbSkeleton>
<StyledSkeleton width={100} />
</StyledBreadcrumbSkeleton>
)}
{items.length > 1 ? <StyledBreadcrumb items={items} /> : <StyledSkeleton width={100} />}
</CourtInfo>
<ButtonContainer>
<HowItWorks
Expand Down

0 comments on commit 27853d8

Please sign in to comment.