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

Align structured facts with tops of cells #1086

Merged
merged 1 commit into from
Apr 15, 2024
Merged

Conversation

yakatz
Copy link
Member

@yakatz yakatz commented Apr 14, 2024

Structured facts are potentially very long, so it can be hard to find the keys and values. This puts them at the top of the cells, which might be less visibly pleasing from a design perspective, but is definitely more useful.

Structured facts are potentially very long, so it can be hard to find the keys and values. This puts them at the top of the cells, which might be less visibly pleasing from a design perspective, but is definitely more useful.
Copy link

codecov bot commented Apr 14, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 76.87%. Comparing base (f9a52d5) to head (2b012fe).

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1086   +/-   ##
=======================================
  Coverage   76.87%   76.87%           
=======================================
  Files          20       20           
  Lines        1310     1310           
=======================================
  Hits         1007     1007           
  Misses        303      303           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@yakatz
Copy link
Member Author

yakatz commented Apr 14, 2024

On a node page:

Before
image

After
image

@yakatz
Copy link
Member Author

yakatz commented Apr 14, 2024

On a fact page:

Before
image

After
image

Copy link
Member

@smortex smortex left a comment

Choose a reason for hiding this comment

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

Slightly better. Top-alignment of the fact names make sense as some facts are very long and this makes us be sure we can scroll up to read the fact name.

Maybe we improve this further by limiting the height used to display a fact value, maybe "wrapping" long facts values and allowing the user to unwrap them form the UI with a button (look complicated), or limiting the value max height and having a scroll-bar on overflow (full CSS); but it is maybe something for another PR.

@yakatz
Copy link
Member Author

yakatz commented Apr 14, 2024

Maybe we improve this further by limiting the height used to display a fact value, maybe "wrapping" long facts values and allowing the user to unwrap them form the UI with a button (look complicated), or limiting the value max height and having a scroll-bar on overflow (full CSS); but it is maybe something for another PR.

If I ever have time, I was thinking about looking into some javascript that could make the structured facts collapsible - no idea when I would get to it...

@gdubicki
Copy link
Contributor

Thank you for the contribution, @yakatz!

Feel free to create your PR to further improve this, @smortex and @bastelfreak 😊

@gdubicki gdubicki merged commit 3fcfd9e into voxpupuli:master Apr 15, 2024
16 checks passed
@yakatz yakatz deleted the patch-2 branch April 15, 2024 13:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants