Skip to content

Commit

Permalink
Merge pull request #588 from chatch/fix-pagination-link
Browse files Browse the repository at this point in the history
fix pagination link
  • Loading branch information
chatch committed Jan 25, 2024
2 parents 6ca18f3 + 61f9be8 commit 2ca9c46
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
7 changes: 5 additions & 2 deletions app/components/shared/PagingControls.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,17 @@ const PagingControls = ({
handleClickPrev,
hidePrev,
}: PagingControlsProps) => (
<div id="paging-controls">
<div
id="paging-controls"
className={`${hidePrev ? 'paging-buttons-right' : 'paging-buttons'}`}
>
{!hidePrev && (
<button onClick={handleClickPrev}>
&larr; <FormattedMessage id="paging.prev" />
</button>
)}

<button onClick={handleClickNext} style={{ float: 'right' }}>
<button onClick={handleClickNext}>
<FormattedMessage id="paging.next" /> &rarr;
</button>
</div>
Expand Down
11 changes: 11 additions & 0 deletions app/styles/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -615,6 +615,17 @@ button[id^="btn-custom-network"]:first-of-type {
background-color: #3c4452 !important;
}

.paging-buttons {
display: flex;
justify-content: space-between;

}

.paging-buttons-right {
display: flex;
justify-content: flex-end;
}

a {
color: #00c292;
}
Expand Down

0 comments on commit 2ca9c46

Please sign in to comment.