Skip to content

Conversation

@shonsirsha
Copy link
Collaborator

Fix inconsistent left & right paddings in accounts page.

After:

Screenshot 2025-12-17 at 07 20 10

Comment on lines 35 to 41
const inlineStyles = {
...(width && { width, maxWidth: '100%' }),
};

return (
<div className={style.container}>
<div className={style.header}>
<div className={style.header} style={inlineStyles}>
Copy link
Collaborator Author

@shonsirsha shonsirsha Dec 17, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added this so that if a custom width is set on the View (usually placed below the Header), the Header can also have the same width, thus not longer than the View below it.

Previously, on bigger "phones" (width ~ >= 710px), the header is longer than the view below it:

Image

This isn't the only thing that fixes it, but is a part of it.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This isn't the only thing that fixes it, but is a part of it.

what other fixes?

please see my alternative suggestion below

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what other fixes?

@thisconnect your suggestion works, so we dont need to change the header. But that's only a part of the problem, another is with the Chevron. You can see, it's closer to the edge of the screen compared to the coin logo:

Screenshot 2025-12-17 at 12 38 57

Which is actually the main problem. That other one was technically only problematic for screen size width 700-767px.

Copy link
Collaborator

@thisconnect thisconnect Dec 17, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe I have introduced the chevron being too far right when I tried to optimize this for small screens
in combination with long 18 decimal ETH amounts and long account names.

Please compare this change with master and test with long ETH amounts and long names on small screen.

I think small screen is more important than this 700+ px viewport. But ofc you could add some styling to improve the ~ 700px viewport specifically.

Comment on lines 35 to 41
const inlineStyles = {
...(width && { width, maxWidth: '100%' }),
};

return (
<div className={style.container}>
<div className={style.header}>
<div className={style.header} style={inlineStyles}>
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This isn't the only thing that fixes it, but is a part of it.

what other fixes?

please see my alternative suggestion below

@shonsirsha shonsirsha force-pushed the frontend-fix-inconsistent-paddings-in-accounts-page branch from d7e7e8c to 3945eb8 Compare December 17, 2025 11:42
@shonsirsha
Copy link
Collaborator Author

Removed the changes on the header, and changed the View's width to be 768px. PTAL @thisconnect .

Copy link
Collaborator

@thisconnect thisconnect left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

untested LGTM, but pelase test small screen with long ETH amounts and account names

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants