-
Notifications
You must be signed in to change notification settings - Fork 43
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
fix: responsiveness on long reciept name #238
fix: responsiveness on long reciept name #238
Conversation
@jordan-ae Pls fix the build, otherwise works fine |
|
table * { | ||
text-wrap: nowrap; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That is there for a reason. Have you seen how it breaks the page on mobile?
I estimated the task to be two hours, because it requires restructuring the table html.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My mistake it does overlap the buttons on mobile quite a bit more without this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did not submit my review correctly, lesson learned.
You can see the overlapping of the buttons on mobile if you open the additionalDetails
field.
table * { | ||
text-wrap: nowrap; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My mistake it does overlap the buttons on mobile quite a bit more without this
In your screenshot you are using the NFT permit which contains more info than an ERC20 permit. In your screenshot, how do you close the additional details? How do you claim? You should see these buttons underneath the dialogue uncovered and fully visible Try it with the ERC20 permit as that is the permit that's actively been generated, the NFT is not quite yet. As you open and close the additional details dialogue you will see that the dialogue overlaps the button you pressed to open it. |
As requested earlier and on TG @jordan-ae. It may affect it in other ways but this stood out to me with css: without css: |
@0x4007 I also dont know if its intentional or its a bug, but when viewing an NFT permit there's no way to navigate back from the details page. |
this specific overlap I'm talking about only happens on mobile |
It is not intentional, it should behave in the exact same way that the ERC20 permit behaves. I will open a separate issue for it. NFTs are not rolled out atm afaik so it's not high priority or app breaking |
You have to click additionalDetails and open the dialogue to repro this overlap, it does not overlap without interaction. Devtools, mobile-view and all templates show the overlap. The spec targets the ENS name overflowing, the removal of the CSS is producing the overlap because the table is resizing itself rather than being fixed. The difference in these two images is that the first ENS name is Note that an actual ENS name will be one string likely without spaces, I have added spaces between each here so that it wraps as expected. As opposed to the string you'll need to handle which is |
@Keyrxng thanks for the remarks. I noticed @0x4007 made the address to have an ellipsis when it gets to long. It didn't work because he forgot to add a max-width, so I've got that working now. So the sender address doesnt break and cause the glitch anymore. Before committing just wanted to get you guys opinion on if I should do an ellipsis on the front too or just make it wrap when the text gets too long. |
Ellipsis generally is preferred but I am unsure if there are new problems caused by setting max-width on the table. |
@jordan-ae Pls mark this PR as "ready for review" when you're finished, as far as I understand the only question was regarding ellipsis which is answered here |
Resolves #237