Skip to content

Commit 27853d8

Browse files
authored
Merge pull request #1594 from kleros/fix/breadcrumb-alignment
fix(web): breadcrumb-alignment-fix-in-court-details
2 parents 2d50177 + 95ae551 commit 27853d8

File tree

1 file changed

+5
-14
lines changed

1 file changed

+5
-14
lines changed

web/src/pages/Courts/CourtDetails/index.tsx

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const CourtHeader = styled.h1`
3636
`;
3737

3838
const CourtInfo = styled.div`
39-
display: flex:
39+
display: flex;
4040
flex-direction: column;
4141
gap: 16px;
4242
@@ -71,13 +71,10 @@ const StyledCard = styled(Card)`
7171
`;
7272

7373
const StyledBreadcrumb = styled(Breadcrumb)`
74-
display: flex;
75-
margin-top: 12px;
7674
align-items: center;
77-
`;
78-
79-
const StyledBreadcrumbSkeleton = styled.div`
80-
margin-top: 12px;
75+
button {
76+
font-size: 16px;
77+
}
8178
`;
8279

8380
const CourtDetails: React.FC = () => {
@@ -102,13 +99,7 @@ const CourtDetails: React.FC = () => {
10299
<CourtHeader>
103100
<CourtInfo>
104101
{policy ? policy.name : <StyledSkeleton width={200} />}
105-
{items.length > 1 ? (
106-
<StyledBreadcrumb items={items} />
107-
) : (
108-
<StyledBreadcrumbSkeleton>
109-
<StyledSkeleton width={100} />
110-
</StyledBreadcrumbSkeleton>
111-
)}
102+
{items.length > 1 ? <StyledBreadcrumb items={items} /> : <StyledSkeleton width={100} />}
112103
</CourtInfo>
113104
<ButtonContainer>
114105
<HowItWorks

0 commit comments

Comments
 (0)