-
Notifications
You must be signed in to change notification settings - Fork 46
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: move controls into sight #248
Conversation
@@ -63,6 +63,7 @@ export async function renderTransaction(): Promise<Success> { | |||
} else { | |||
const requestedAmountElement = insertErc721PermitTableData(app.reward, table); | |||
table.setAttribute(`data-make-claim`, "ok"); | |||
table.setAttribute(`data-additional-data-size`, "large"); |
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.
Where is the logic to remove this? If this is to display on NFT rewards, what happens when you switch to a non NFT reward? Does it re-render the table without this attribute?
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.
This scenario never dawned on me but it does not re-render the table. I crafted a permit with both types in it NFT first and it shifted for ERC20.
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.
Works fine
Actually I think it's a bad idea to move the interaction elements (the view details button) You should only render the details higher and maintain the position of the button. It's unnecessary extra work for the user to move their mouse and chase the button. |
move-table-up.mp4When is it expected that NFT permits will start getting printed? |
Resolves #247
The add. table is well placed and it didn't feel right moving it up any further
transform
and movesmainTableBody
into sight only for NFTsBefore:
hidden-controls.mp4
After:
show-controls.mp4