Giter VIP home page Giter VIP logo

Comments (11)

MohdImran001 avatar MohdImran001 commented on June 15, 2024

I want to work on it. Please assign it to me.

from explorer.

allenan avatar allenan commented on June 15, 2024

You got it @MohdImran001

from explorer.

MohdImran001 avatar MohdImran001 commented on June 15, 2024

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.

MohdImran001 avatar MohdImran001 commented on June 15, 2024

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.

danielcolinjames avatar danielcolinjames commented on June 15, 2024

Hey @MohdImran001 it looks like those links are 404'd now, could you attach the images to a GitHub comment?

from explorer.

MohdImran001 avatar MohdImran001 commented on June 15, 2024

I am really sorry for that. Here is the screenshot :-
scrnli_10_8_2020_11-12-18 PM

from explorer.

danielcolinjames avatar danielcolinjames commented on June 15, 2024

@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.

MohdImran001 avatar MohdImran001 commented on June 15, 2024

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.

MohdImran001 avatar MohdImran001 commented on June 15, 2024

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.

danielcolinjames avatar danielcolinjames commented on June 15, 2024

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.

danielcolinjames avatar danielcolinjames commented on June 15, 2024

Fixed by #123

from explorer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.