Comments (11)
I want to work on it. Please assign it to me.
from explorer.
You got it @MohdImran001
from explorer.
I am thinking to show only a few letters of proof and adding a button next to it. When the user clicks this button then it will show the full proof. Something like this:- https://scrn.li/56XrbO14RzU0rp
from explorer.
I have made some changes, you can see them here https://scrn.li/99IlKjK3feVO7t. I want to know which elements should be made clickable and what they will do when the user clicks them.
from explorer.
Hey @MohdImran001 it looks like those links are 404'd now, could you attach the images to a GitHub comment?
from explorer.
I am really sorry for that. Here is the screenshot :-
from explorer.
@MohdImran001 No worries! Thanks for sharing that. It definitely looks a bit better than it does currently, but I think maybe the proof section should have a bit more visual indication that it's being truncated. I'm not sure what that should be though. And the "members" list could probably look better as a list with a line break after each item, in bullet points or something.
If you have some code I'd love to take a look!
@allenan any thoughts? Maybe we should get some input from design?
from explorer.
To provide more visual indication, I think we can add a show full button with a nice icon next to the proof content.
In pages/TxnView.js :- line 80 - 94
I am wrapping the values in p tag and using the key as className to easily apply CSS on it.
return (
<Descriptions bordered>
{Object.entries(txn).map(([key, value]) => {
return (
<Descriptions.Item label={key} key={key} span={3}>
<p className={key}>
{typeof value === 'object' ? value.map(member => animalHash(member)).join(', ') : value}
</p>
</Descriptions.Item>
)
})}
</Descriptions>
)
In Explorer.css, I added the following code to truncate the length of proof and members followed by ellipses.
.ant-descriptions-item-content p {
display: table-cell;
}
.proof,
.members {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
max-width: 60ch;
}
from explorer.
Hii @allenan and @danielcolinjames. I'd love to get some feedback about my code. Please review my code and let me know what should I do next. I am very excited about it :D
from explorer.
Hey @MohdImran001, sorry for the slow response. Love that you're excited to help make the Explorer better!
If it's possible, could you push your code up to your copy of the repo (or just somewhere on GitHub, as a PR, or wherever is convenient) so I can check it out and run it locally? I'm having a hard time picturing how it'll work just from the example above and that would make it easier for me to understand.
Thanks!
from explorer.
Fixed by #123
from explorer.
Related Issues (20)
- explorer shows wrong Hex and inaccurate (about 600m) location[Bug]: HOT 1
- [Bug]: 404 error at URL: /hotspots
- Hex wonβt get green
- [Bug]: 404 error at URL: /txns/ryrQmjPS7YqrBOerGDUnzUlhW05b3jcoV0LWBzhdEdo
- [Bug]: 404 error at URL: /hotspots/cities/Z3Jvw59rYXJsYmFjaHJoZWlubGFuZC1wZmFsemdlcm1hbnk
- [Bug]: 404 error at URL: /txns/-uzl1x7e7VmJBwopeOsAyE1eucLX7hqHwZ2L07wm6JU
- [Bug]: 404 error at URL: /txns/v9eG3qzBcjqwrxBOB8x1PbY_ZdgTbOCgxYLJNAVEsFU
- [Bug]: 404 error at URL: /hotspots/cities/2KfZhNix2YHYp9i52KfZhNmF2K3Yp9mB2LjYqSDYp9mE2KzZhtmI2KjZitipYmFocmFpbg
- Did get my coin off helium network
- [Bug]: 404 error at URL: /txns/J_1SBDA-B_Q3V31mKt6CoLna3_PAZG4jKdu-BZQtKgA
- [Bug]: 404 error at URL: /hotspots/latest
- [Bug]: 404 error at URL: /txns/bwWOUzAwsngCSJUSkhRtOUtUV3wByOL7djBD_lrRyyw
- [Bug]: 404 error at URL: /txns/bR3AOzZ3Neq7frqOMu5jf7ZAMoR0K77kHqt9ZUwizTM
- [Bug]: 404 error at URL: /txns/LNEWuyEOHrM-C47ympPl7DCv0gS0EDjRsA0qgDyzvJA
- [Bug]: 404 error at URL: /txns/lUpzJwkFJ2TEmywsB1mrt3fOVQrHvWL-yJzo9oAgUY0
- [Bug]: 404 error at URL: /hotspots
- [Bug]: 404 error at URL: /txns/2KlycTPrtmlxZdD6xvm6rOTn3FBgxiAhAe6C4C8vYFc
- [Bug]: 404 error at URL: /txns/eptOwiuB5RGEm6VGAsGt9ru4c1iaKViwBZDKC3MbDE4
- [Bug]: 404 error at URL: /txns/6ZCAVVvQYb-vAhWbAqw1r2_tL6KtxysvWkYwn83gvFw
- [Bug]: 404 error at URL: /hotspots/cities/cGllZGVjdWVzdGFzYW50YW5kZXJjb2xvbWJpYQ
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from explorer.