Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Responsive fix #309

Closed
wants to merge 6 commits into from
Closed

Conversation

hydroxylase
Copy link
Contributor

Resolves #237

@hydroxylase
Copy link
Contributor Author

The is the latest iteration. I got carried away with he previous version and completely didn't notice the align ment issue so I had to go for another approach with media queries.

The table body width is 565px max. On bigger screens we can increase the anchor length as long as it doesn't overflow the table body container.

On small screens however, the green width is usually below 565px therefore the table will assume view width size. The parent element , td#recipient, of the anchor tag is 80% of the table body width. Taking 80% of 80 leaves us with 64% of view width.

@hydroxylase
Copy link
Contributor Author

localhost_8080__claim=W3sidHlwZSI6ImVyYzIwLXBlcm1pdCIsInBlcm1pdCI6eyJwZXJtaXR0ZWQiOnsidG9rZW4iOiIweGU5MUQxNTNFMGI0MTUxOEEyQ2U4RGQzRDc5NDRGYTg2MzQ2M2E5N2QiLCJhbW91bnQiOiIxMDAwMDAwMDAwMDAwMDAwMDAwIn0sIm5vbmNlIjoiMjM (2)
localhost_8080__claim=W3sidHlwZSI6ImVyYzIwLXBlcm1pdCIsInBlcm1pdCI6eyJwZXJtaXR0ZWQiOnsidG9rZW4iOiIweGU5MUQxNTNFMGI0MTUxOEEyQ2U4RGQzRDc5NDRGYTg2MzQ2M2E5N2QiLCJhbW91bnQiOiIxMDAwMDAwMDAwMDAwMDAwMDAwIn0sIm5vbmNlIjoiMjM (1)

@gentlementlegen @0x4007

@gentlementlegen
Copy link
Member

Thank you for the fix. It looks fine to me but I'll give it a run with my eth domain and Windows machine tomorrow to be sure.

@hydroxylase
Copy link
Contributor Author

hydroxylase commented Sep 15, 2024 via email

@hydroxylase
Copy link
Contributor Author

Have you checked it yet??
@gentlementlegen

@gentlementlegen
Copy link
Member

This is what I see:
image

I am not sure if that's right, rfc @0x4007

@0x4007
Copy link
Member

0x4007 commented Sep 18, 2024

Overflow hidden and text overflow ellipse

@hydroxylase
Copy link
Contributor Author

Is that even possible. I took out the scroll bar earlier.

@hydroxylase
Copy link
Contributor Author

@0x4007 this doesn't seem to have the latest changes. I thinks it's from the branch I deleted earlier to start this one. You can see the misalignment of the amount and the address, which was why the previous iteration had to be rejected and reworked on.

@gentlementlegen Please load the latest changes.

@gentlementlegen
Copy link
Member

The old branch was still linked to my remote, my bad. Here are the updated screenshots:
image
image

Seems to work fine so far.

static/styles/rewards/media-queries.css Outdated Show resolved Hide resolved
#rewardRecipient > a {
display: inline-block;
width: 100%;
max-width: calc(0.7*565px);
Copy link
Member

Choose a reason for hiding this comment

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

What is the significance of 0.7 and 565?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The table body width is 565px max. On bigger screens we can increase the anchor length as long as it doesn't overflow the table body container.

On small screens however, the green width is usually below 565px therefore the table will assume view width size. The parent element , td#recipient, of the anchor tag is 80% of the table body width. Taking 80% of 80 leaves us with 64% of view width.

Copy link
Member

Choose a reason for hiding this comment

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

Why did you make it 70%

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That's the most optimal value

Copy link
Member

Choose a reason for hiding this comment

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

Taking 80% of 80 leaves us with 64% of view width.

There's nothing about 70% in your explanation

Co-authored-by: アレクサンダー.eth <[email protected]>
@hydroxylase
Copy link
Contributor Author

@Keyrxng @0x4007 this pull as well.

Copy link
Member

@Keyrxng Keyrxng left a comment

Choose a reason for hiding this comment

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

Things appear good.

image

image

@hydroxylase
Copy link
Contributor Author

Things appear good.

image

image

Anticipating the merge

@Keyrxng
Copy link
Member

Keyrxng commented Sep 21, 2024

@CaptainPrinz can you resolve the conflicts please

@hydroxylase
Copy link
Contributor Author

@Keyrxng conflicts resolved

@gentlementlegen
Copy link
Member

@0x4007 Good to go here?

Copy link
Member

@0x4007 0x4007 left a comment

Choose a reason for hiding this comment

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

@rndquu @Keyrxng why aren't continuous deploys working anymore? How can we test?

@hydroxylase
Copy link
Contributor Author

@Keyrxng please merge and fund

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.

Responsive issues on long recipient's name
4 participants