Skip to content

Commit

Permalink
Abbreviate block link on tablet
Browse files Browse the repository at this point in the history
  • Loading branch information
buberdds committed Jun 14, 2023
1 parent c41f5b7 commit 7f8ecc9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .changelog/530.bugfix.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Abbreviate block link on tablet
4 changes: 2 additions & 2 deletions src/app/components/Blocks/BlockLink.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ export const BlockHashLink: FC<{ scope: SearchScope; hash: string; height: numbe
hash,
height,
}) => {
const { isMobile } = useScreenSize()
const { isTablet } = useScreenSize()
return (
<Typography variant="mono">
{isMobile ? (
{isTablet ? (
<TrimLinkLabel label={hash} to={RouteUtils.getBlockRoute(scope, height)} />
) : (
<Link component={RouterLink} to={RouteUtils.getBlockRoute(scope, height)}>
Expand Down

0 comments on commit 7f8ecc9

Please sign in to comment.