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

UI: Optimize tx-table for mobile screen #1804

Merged
merged 16 commits into from
Aug 25, 2022

Conversation

relativisticelectron
Copy link
Collaborator

@relativisticelectron relativisticelectron commented Jul 14, 2022

Before:
before

After:
after

While not 100% perfect. It is now usable also on a very narrow screen.

TODOs:

@netlify
Copy link

netlify bot commented Jul 14, 2022

Deploy Preview for specter-desktop-docs ready!

Name Link
🔨 Latest commit 7f96399
🔍 Latest deploy log https://app.netlify.com/sites/specter-desktop-docs/deploys/630746cb2c38db0008312178
😎 Deploy Preview https://deploy-preview-1804--specter-desktop-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@moneymanolis
Copy link
Collaborator

@relativisticelectron could you perhaps rebase this PR on this PR #1813 (once it is merged) - I've done some work there on the tx table which should also make it a bit more mobile friendly.

@relativisticelectron
Copy link
Collaborator Author

@relativisticelectron could you perhaps rebase this PR on this PR #1813 (once it is merged) - I've done some work there on the tx table which should also make it a bit more mobile friendly.

Sure.

@relativisticelectron
Copy link
Collaborator Author

@relativisticelectron could you perhaps rebase this PR on this PR #1813 (once it is merged)

Done. Now this PR is much smaller.

@relativisticelectron
Copy link
Collaborator Author

@moneymanolis : Could you review this PR? It is now really small.

@moneymanolis
Copy link
Collaborator

@moneymanolis : Could you review this PR? It is now really small.

Will do!

@@ -200,6 +200,7 @@
width: 100%;
margin-bottom: 10px;
border: 1.5px solid var(--cmap-border);
overflow-x: scroll;
Copy link
Contributor

Choose a reason for hiding this comment

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

I think overflow-x: auto would be better choice, considering it handles both overflowing and non overflowing cases. Just to avoid a scroll bar in case of no-overflow.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done

Copy link
Collaborator

Choose a reason for hiding this comment

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

Sorry for responding so late: I would have chosen a different approach. I would have added the class optional to the time column, similarly to what we have done with the txid column (or to another column that seems not so necessary for limited space on a phone). We ca finetune that later in a different PR if you like the idea.

Copy link
Collaborator

Choose a reason for hiding this comment

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

@relativisticelectron Would look like this, let me know what you think, I can quickly make a PR out of it:

grafik

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

That would have worked too :-)

Copy link
Contributor

@b30wulffz b30wulffz left a comment

Choose a reason for hiding this comment

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

Left a comment. Check it once.

Also, can this overflowing content in table header be fixed?
For example, the buttons here
image

@relativisticelectron
Copy link
Collaborator Author

Left a comment. Check it once.

Also, can this overflowing content in table header be fixed?

Done
image

@k9ert k9ert merged commit bb45ac6 into cryptoadvance:master Aug 25, 2022
@@ -353,6 +353,7 @@
locked: this.tx.locked,
} });
this.dispatchEvent(event);
e.stopPropagation(); // this prevent the onclick of outer divs to be triggered
Copy link
Collaborator

Choose a reason for hiding this comment

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

@relativisticelectron could you explain this? Which onclick listeneres picked that up? Where did that bubble to? I thought it would be contained within the web component.

Copy link
Collaborator Author

@relativisticelectron relativisticelectron Aug 25, 2022

Choose a reason for hiding this comment

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

The entire row becomes clickable

The propagation to the outer div has to be stopped.

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.

4 participants