Skip to content

Commit

Permalink
refactor: make connected account button responsive for small sreens
Browse files Browse the repository at this point in the history
re #641
  • Loading branch information
yagopajarino committed Dec 17, 2024
1 parent abeb1ed commit 68f7ca6
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions apps/dashboard/src/components/navbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,11 @@ export default function NavBar(): JSX.Element {
>
{!isLoggedInAdmin()
? "Unconnected account"
: `Connected as ${shortenAddress(
address as string
)}`}
: `${
window.screen.availWidth > 375
? "Connected as"
: ""
} ${shortenAddress(address as string)}`}
</Button>
</HStack>
</HStack>
Expand Down

0 comments on commit 68f7ca6

Please sign in to comment.