-
Notifications
You must be signed in to change notification settings - Fork 1
Improve Span Details Panel UI and Functionality per design #76
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
Conversation
- Fixed span details header and search bar - Matched spacing and colouring in details
Enhances the visual presentation of the span details panel by adjusting font weights and adding padding to the accordion component, improving readability and overall user experience.
The changes include: - Adding padding to the accordion component. - Adjusting the background color of rows in the table. - Adding a close button to the span details panel. - Updating the search input placeholder text. - Changing the span detail headers to uppercase and light font.
Improves the contrast of table rows in dark mode by changing the alternating background color from a dark gray to white.
Improves the visual separation of the span overlay drawer from the content below it. The drawer now includes a top border, making it easier to distinguish the drawer's boundaries. This enhances the user interface by providing clearer visual cues.
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.
Not bad, left some nitpicks.
Adds `whitespace-nowrap` to span details to prevent text wrapping, improving readability. Adjusts the background color of the span overlay drawer for better contrast. Improves vertical spacing in span details
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.
Almost there!
<input type="text" placeholder="Search" value={search} onChange={(e) => setSearch(e.target.value)} /> | ||
<table className="w-full"> | ||
<div className="z-10 overflow-hidden text-sm"> | ||
<div className="px-2 py-2"> |
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.
Don't do px-2 py-2, do p-2
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.
Do a search and replace on this, we have it elsewhere as well.
/> | ||
</div> | ||
</div> | ||
<div className="px-4"> |
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.
Why add an extra div here? If it only has a single child, why not add the padding there?
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 one is so we can extend the line from end to end of a panel. With padding, that line is broken by the padding width
/> | ||
</div> | ||
</div> | ||
<div className="px-4"> |
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.
Improves the Span Details Panel with the following changes: