Skip to content

Commit

Permalink
OCT-1404 Adjust History Loader to the design (#42)
Browse files Browse the repository at this point in the history
  • Loading branch information
aziolek authored Mar 3, 2024
1 parent 4404f84 commit 52b5e42
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,12 @@
}
}

.skeleton {
padding: 0 $historyHorizontalPadding;
}

.title {
padding: 0 1.6rem;
padding: 0 $historyHorizontalPadding;
}

.childrenWrapper {
Expand Down
4 changes: 3 additions & 1 deletion client/src/components/Earn/EarnHistory/EarnHistory.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ const EarnHistory: FC<EarnHistoryProps> = ({ className }) => {
titleClassName={styles.title}
>
{showLoader ? (
<EarnHistorySkeleton />
<div className={styles.skeleton}>
<EarnHistorySkeleton />
</div>
) : (
<InfiniteScroll
hasMore={hasNextPage}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
}

.child {
padding: 1.3rem 1.6rem;
padding: 1.3rem $historyHorizontalPadding;
border-radius: $border-radius-06;

&:hover {
Expand All @@ -26,10 +26,9 @@
}

.separator {
$marginLeft: 1.6rem;
width: calc(100% - $marginLeft * 2);
width: calc(100% - $historyHorizontalPadding * 2);
height: 0.1rem;
margin-left: $marginLeft;
margin-left: $historyHorizontalPadding;
background: $color-octant-grey8;
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.emptyHistoryInfo {
height: 7.2rem;
padding: 0 $historyHorizontalPadding;
display: flex;
align-items: center;
color: $color-octant-grey5;
Expand Down
1 change: 1 addition & 0 deletions client/src/styles/utils/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,4 @@ $progressStepperSlimStepPadding: 2.4rem;
$modalVariantSmallPaddingMobile: 2.4rem;
$modalVariantSmallPaddingDesktop: 5.6rem;
$proposalItemPadding: 2.4rem;
$historyHorizontalPadding: 1.6rem;

0 comments on commit 52b5e42

Please sign in to comment.