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

ui: Improve layout of node cards on large and small screens #4761

Merged
merged 1 commit into from
Oct 11, 2018

Conversation

johncowen
Copy link
Contributor

  1. The grid based unhealthy cards are now clamped to only four wide
    maximum. This means that on larger screen the cards are much wider
    meaning you can view more information. Grid gutters are also clamped at
    a certain ideal width screen, remaining responsive for anything below
    this.

Before:

screen shot 2018-10-05 at 18 46 15

After:

screen shot 2018-10-05 at 18 48 43

  1. The healthy node columns are finally responsive following the same
    column rules as unhealthy nodes.

Before:

screen shot 2018-10-05 at 18 47 14

After:

screen shot 2018-10-05 at 18 49 27

These changes along with #4760, drastically reduce the chances of things overflowing, but remaining viewable. (They can still happen, but it's only in certain usecases/setups)

Also addresses #4231 #4395 and #4748

@johncowen johncowen added the theme/ui Anything related to the UI label Oct 5, 2018
@johncowen johncowen requested review from a team and hannahhearth October 5, 2018 17:54
1. The grid based unhealthy cards are now clamped to only four wide
maximum. This means that on larger screen the cards are much wider
meaning you can view more information. Grid gutters are also clamped at
a certain ideal width screen, remaining responsive for anything below
this.

2. The healthy node columns are finally responsive following the same
column rules as unhealthy nodes
@johncowen johncowen force-pushed the feature/ui-improve-node-card-layout branch from 7de01c9 to 7b50589 Compare October 5, 2018 18:11
@@ -13,15 +13,27 @@
.unhealthy > div {
margin-bottom: 20px;
}
.healthy > div > ul > li {
padding-right: 23px;
Copy link
Contributor

Choose a reason for hiding this comment

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

Not a big deal at all, but for your reference, I've tried making all spacing stick to the 12, 24, 36, 48, etc., as suggested by Structure, so I was surprised to see 23, but again, not a big deal, and we can go back and do a spacing audit another time.

image

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hey!

Cool yeah for sure. These are only +s because I moved them from further below, the values haven't been changed since my initial trace of the original layouts back from when we did the initial release, which would have been before Structure.

At some point I'll be able to do a re-trace of everything, hopefully might get a chance in the next couple of weeks.

Ta

John

@johncowen johncowen added this to the 1.3.0 milestone Oct 8, 2018
@johncowen johncowen merged commit 5f39bfd into master Oct 11, 2018
@johncowen johncowen deleted the feature/ui-improve-node-card-layout branch October 11, 2018 09:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
theme/ui Anything related to the UI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants