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

fix: move controls into sight #248

Merged
merged 3 commits into from
Jun 17, 2024
Merged

Conversation

Keyrxng
Copy link
Contributor

@Keyrxng Keyrxng commented Jun 10, 2024

Resolves #247

The add. table is well placed and it didn't feel right moving it up any further

  • applies transform and moves mainTableBody into sight only for NFTs

Before:

hidden-controls.mp4

After:

show-controls.mp4

@ubiquity-os-deployer
Copy link

ubiquity-os-deployer bot commented Jun 10, 2024

Copy link
Contributor

github-actions bot commented Jun 10, 2024

@@ -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");
Copy link
Member

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?

Copy link
Contributor Author

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.

Copy link
Member

@rndquu rndquu left a comment

Choose a reason for hiding this comment

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

Works fine

@0x4007
Copy link
Member

0x4007 commented Jun 16, 2024

  • applies transform and moves mainTableBody into sight only for NFTs

After:

show-controls.mp4

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.

@Keyrxng
Copy link
Contributor Author

Keyrxng commented Jun 16, 2024

move-table-up.mp4

When is it expected that NFT permits will start getting printed?

@0x4007 0x4007 merged commit b7dd348 into ubiquity:development Jun 17, 2024
4 checks passed
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.

NFT add. details hides controls
3 participants