From 5084ae0faa9bbf9671c7a52797c3a7dcb8d1b03d Mon Sep 17 00:00:00 2001 From: Michal Zielenkiewicz Date: Wed, 14 Jun 2023 11:05:45 +0200 Subject: [PATCH] Abbreviate block link on tablet --- .changelog/531.bugfix.md | 1 + src/app/components/Blocks/BlockLink.tsx | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 .changelog/531.bugfix.md diff --git a/.changelog/531.bugfix.md b/.changelog/531.bugfix.md new file mode 100644 index 000000000..dd96728d3 --- /dev/null +++ b/.changelog/531.bugfix.md @@ -0,0 +1 @@ +Abbreviate block link on tablet diff --git a/src/app/components/Blocks/BlockLink.tsx b/src/app/components/Blocks/BlockLink.tsx index 3179eee23..4501d0f56 100644 --- a/src/app/components/Blocks/BlockLink.tsx +++ b/src/app/components/Blocks/BlockLink.tsx @@ -21,10 +21,10 @@ export const BlockHashLink: FC<{ scope: SearchScope; hash: string; height: numbe hash, height, }) => { - const { isMobile } = useScreenSize() + const { isTablet } = useScreenSize() return ( - {isMobile ? ( + {isTablet ? ( ) : (