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

Fix/metadata viewer tweaks #178

Merged
merged 9 commits into from
Dec 14, 2023
Merged

Fix/metadata viewer tweaks #178

merged 9 commits into from
Dec 14, 2023

Conversation

frasercl
Copy link
Contributor

Incorporates visual tweaks to the metadata viewer designed by @lynwilhelm:

  • Collapsible category borders now appear above the title and below the content (rather than above and below the title)
  • Better horizontal alignment of category content to match titles
  • Categories are sorted out and always appear above data

The first of those was surprisingly challenging and accounts for most of the code changes in this PR, but I think I ultimately got things much cleaner than they were before.

Before:

image

After:

image

@frasercl frasercl requested a review from a team as a code owner December 13, 2023 03:04
@frasercl frasercl requested review from toloudis, meganrm, blairlyons, interim17, ShrimpCryptid and ascibisz and removed request for a team December 13, 2023 03:04

const isCategory = (val: MetadataEntry): val is MetadataRecord => typeof val === "object" && val !== null;
const cats: MetadataRecord = {};
Copy link
Contributor

Choose a reason for hiding this comment

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

🐈

Copy link
Contributor

@ShrimpCryptid ShrimpCryptid left a comment

Choose a reason for hiding this comment

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

LGTM! Tested locally :)

Copy link
Contributor

@toloudis toloudis left a comment

Choose a reason for hiding this comment

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

🚀

@toloudis toloudis merged commit ff301ca into main Dec 14, 2023
3 checks passed
@toloudis toloudis deleted the fix/metadata-viewer-tweaks branch December 14, 2023 19:03
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.

3 participants