Skip to content

Commit 20a27f8

Browse files
committed
fix: random style fix for margin bottom in case cards title skeletons
1 parent a774c26 commit 20a27f8

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

web/src/components/DisputeView/DisputeCardView.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { Periods } from "consts/periods";
99

1010
import { responsiveSize } from "styles/responsiveSize";
1111

12-
import { StyledSkeleton } from "components/StyledSkeleton";
12+
import { StyledCaseCardTitleSkeleton } from "components/StyledSkeleton";
1313

1414
import DisputeInfo from "./DisputeInfo";
1515
import PeriodBanner from "./PeriodBanner";
@@ -54,7 +54,7 @@ const DisputeCardView: React.FC<IDisputeCardView> = ({ isLoading, ...props }) =>
5454
<StyledCard hover onClick={() => navigate(`/cases/${props?.disputeID?.toString()}`)}>
5555
<PeriodBanner id={parseInt(props?.disputeID)} period={props?.period} />
5656
<CardContainer>
57-
{isLoading ? <StyledSkeleton /> : <TruncatedTitle text={props?.title} maxLength={100} />}
57+
{isLoading ? <StyledCaseCardTitleSkeleton /> : <TruncatedTitle text={props?.title} maxLength={100} />}
5858
<DisputeInfo {...props} />
5959
</CardContainer>
6060
</StyledCard>

web/src/components/StyledSkeleton.tsx

+4
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@ export const StyledSkeleton = styled(Skeleton)`
99
z-index: 0;
1010
`;
1111

12+
export const StyledCaseCardTitleSkeleton = styled(StyledSkeleton)`
13+
margin-bottom: 16px;
14+
`;
15+
1216
const SkeletonDisputeCardContainer = styled.div`
1317
width: 100%;
1418
`;

0 commit comments

Comments
 (0)