Skip to content

Commit

Permalink
Hide next/prev block buttons on mobile lists
Browse files Browse the repository at this point in the history
  • Loading branch information
buberdds committed Feb 1, 2024
1 parent d7b50d1 commit 5a79d75
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions .changelog/1219.bugfix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Hide next/prev block buttons on mobile lists
8 changes: 6 additions & 2 deletions src/app/pages/BlockDetailPage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,12 @@ export const BlockDetailView: FC<{
<dd>
<BlockLink scope={block} height={block.round} />
<CopyToClipboard value={block.round.toString()} />
<PrevBlockButton scope={block} currentRound={block.round} />
<NextBlockButton scope={block} currentRound={block.round} />
{!standalone && (
<>
<PrevBlockButton scope={block} currentRound={block.round} />
<NextBlockButton scope={block} currentRound={block.round} />
</>
)}
</dd>

<dt>{t('common.hash')}</dt>
Expand Down

0 comments on commit 5a79d75

Please sign in to comment.