Skip to content

Commit

Permalink
dev(logs): harmonize loading indicators
Browse files Browse the repository at this point in the history
  • Loading branch information
theborakompanioni committed Oct 20, 2023
1 parent 8e7e511 commit ba3442f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/components/LogOverlay.module.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.logContentPlaceholder {
height: 1rem;
height: 2.625rem;
margin: 1px 0;
}

Expand Down
2 changes: 1 addition & 1 deletion src/components/LogOverlay.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ export function LogOverlay({ currentWallet, show, onHide }: LogOverlayProps) {
<rb.Offcanvas.Body>
<rb.Container fluid="lg" className="py-3">
{!isInitialized && isLoading ? (
Array(12)
Array(5)
.fill('')
.map((_, index) => {
return (
Expand Down
2 changes: 1 addition & 1 deletion src/components/Orderbook.module.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.orderbook-line-placeholder {
.orderbookContentPlaceholder {
height: 2.625rem;
margin: 1px 0;
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/Orderbook.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ export function OrderbookOverlay({ nickname, show, onHide }: OrderbookOverlayPro
.map((_, index) => {
return (
<rb.Placeholder key={index} as="div" animation="wave">
<rb.Placeholder xs={12} className={styles['orderbook-line-placeholder']} />
<rb.Placeholder xs={12} className={styles.orderbookContentPlaceholder} />
</rb.Placeholder>
)
})
Expand Down

0 comments on commit ba3442f

Please sign in to comment.