Skip to content

Commit

Permalink
style: show fake address + error message on small screen
Browse files Browse the repository at this point in the history
  • Loading branch information
JW-Rami committed Dec 31, 2023
1 parent 059b317 commit ca69e04
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
15 changes: 15 additions & 0 deletions client/src/app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,18 @@ a {
color: inherit;
text-decoration: none;
}
.page_error_size{
display: none;
}
@media (max-width: 1400px) {
.page_container{
display: none;
}
.page_error_size{
display: flex;
font-size: 20px;
height: 100vh;
align-items: center;
font-weight: 600;
}
}
1 change: 1 addition & 0 deletions client/src/app/layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ export default function RootLayout({
</div>
{children}
</div>
<div className="page_error_size">Go on a bigger screen.</div>
</body>
</html>
);
Expand Down
2 changes: 1 addition & 1 deletion client/src/components/buttons/Button.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ function Button({ text, isSelected, onClick, isWalletConnected }) {
}
style={{ display: showNextButton ? "flex" : "none" }}
>
{text}
{text === "connect wallet" && isWalletConnected ? "7DXaA...CcY" : text}
</div>
{isSelected && (
<>
Expand Down

0 comments on commit ca69e04

Please sign in to comment.