Skip to content

Conversation

charliepark
Copy link
Contributor

@charliepark charliepark commented Mar 28, 2024

In #1932 @augustuswm reported that the alignment and spacing was strange when multiple lines were present. @benjaminleonard noted that the table's design hadn't been fully realized according to the spec in Figma. This PR updates the elements of the filter column, as well as the design of the TypeValueCell component, to better match the design.

Current:
Screenshot 2024-03-28 at 11 02 03 AM

Updated:
Screenshot 2024-03-28 at 11 50 52 AM

Fixes #1932

Copy link

vercel bot commented Mar 28, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
console ✅ Ready (Inspect) Visit Preview Apr 2, 2024 10:41pm

@charliepark
Copy link
Contributor Author

Just noticed a capitalization change we'll need to make to conform to designs. Updating.

@augustuswm
Copy link

This looks much more readable. In this version is each filter always on a new line? or will small filters attempt to collapse.

@charliepark
Copy link
Contributor Author

charliepark commented Mar 28, 2024

Great question. I had them on multiple lines, but as our table rows have some CSS constraining the row height, things get a bit crowded when multiple filters are in play. I've updated it so filters will wrap:
Screenshot 2024-03-28 at 4 40 03 PM
Currently protocols/ports are on a second line:
Screenshot 2024-03-28 at 4 51 51 PM

Copy link
Collaborator

@david-crespo david-crespo left a comment

Choose a reason for hiding this comment

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

Clearly an improvement. At some point we should do one of those + popup things for overflow when there are too many. (made #2118 for that)

One note, I think the letter spacing on the mono font is meant for upper case and is too wide for normal-cased text. We do the !normal-case override in so many places; it might be worth adding a variant of text-mono that is meant to support lower case. @benjaminleonard @paryhin

2024-04-02-lower-upper

It doesn't look that bad in the gif, but I think it looks worse in context.

image

Here it is with !tracking-normal on the badge, which shrinks letter-spacing from 0.04rem (from text-mono-sm) to 0. Worth considering in a followup.

image

@david-crespo david-crespo linked an issue Apr 3, 2024 that may be closed by this pull request
@david-crespo david-crespo merged commit 95f2e49 into main Apr 3, 2024
@david-crespo david-crespo deleted the a-contrast-in-values branch April 3, 2024 04:18
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.

Firewall filter alignment Fix combined tags on firewall rules
3 participants