Skip to content

Optimized content to be more vertical for resizing consistancy#37120

Merged
igoristic merged 9 commits into
elastic:masterfrom
igoristic:33614
Jun 4, 2019
Merged

Optimized content to be more vertical for resizing consistancy#37120
igoristic merged 9 commits into
elastic:masterfrom
igoristic:33614

Conversation

@igoristic
Copy link
Copy Markdown
Contributor

Summary

Resolves #33614

The sizing discrepancy was mostly in x-pack/plugins/monitoring/public/components/elasticsearch/nodes/nodes.js (Elastic Search > Nodes table) due to the way <MetricCell> component was set up.

I made the content more vertically aligned so it's optimized for width resizing. Also, added no wrapping on the cell's main value for height constancy

This is what it looks like at 1000px:
Screen Shot 2019-05-24 at 3 00 38 PM

Checklist

@igoristic igoristic added bug Fixes for quality problems that affect the customer experience Team:Monitoring Stack Monitoring team v8.0.0 v7.2.0 labels May 24, 2019
@igoristic igoristic requested a review from chrisronline May 24, 2019 19:06
@igoristic igoristic self-assigned this May 24, 2019
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/stack-monitoring

@chrisronline
Copy link
Copy Markdown
Contributor

cc @elastic/kibana-design

@elasticmachine
Copy link
Copy Markdown
Contributor

💔 Build Failed

@elasticmachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

@ryankeairns ryankeairns self-requested a review May 29, 2019 16:59
Copy link
Copy Markdown
Contributor

@ryankeairns ryankeairns left a comment

Choose a reason for hiding this comment

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

@igoristic Visually, this looks nice as a vertically stacked set!

I'm not sure how far down you would like to go, but at 768px this still breaks down a bit. To alleviate that, I would recommend decreasing the heading font size on smaller screens. You could do this through a new custom CSS class and use the EUI responsive helpers to apply the smaller text size: https://elastic.github.io/eui/#/utilities/responsive

Also, there is an EUI SASS mixin (euiTextTruncate) for truncating text that you might consider using in place of noWrapStyle. However, it may truncate the arrow icon which seems critical here :)

768px screenshot - Disk free space overlapping Shards

Screenshot 2019-05-29 11 30 20

@igoristic igoristic requested a review from a team as a code owner May 30, 2019 17:13
@igoristic
Copy link
Copy Markdown
Contributor Author

igoristic commented May 30, 2019

@ryankeairns I made changes based on feedback, but couldn't add @include euiTextTruncate; to <EuiStat> (also tried it with .euiTitle to no avail)

I also didn't have much luck with https://elastic.github.io/eui/#/utilities/responsive since it's already wrapping at xs and @include euiTitle('xxxs'); didn't really look good.

Copy link
Copy Markdown
Contributor

@ryankeairns ryankeairns left a comment

Choose a reason for hiding this comment

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

A couple of minor change requests. Other than that, the simple re-ordering of columns and decreasing the font sizes has produced the desired outcome. Thanks!

}
.monSummaryStatusNoWrap {
margin-left: 12px;
margin-right: 12px;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

These two 12px settings should be replaced with EUI size variables. You can find all the available size variables here https://github.com/elastic/eui/blob/master/src/global_styling/variables/_size.scss , but for 12px you would use $euiSizeM

}

.euiFlexItem {
margin: 8px;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Similarly, you can use $euiSizeS instead of 8px here.

@elasticmachine
Copy link
Copy Markdown
Contributor

💔 Build Failed

Copy link
Copy Markdown
Contributor

@ryankeairns ryankeairns left a comment

Choose a reason for hiding this comment

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

👍 LGTM. Thanks for the updates Igor!

@elasticmachine
Copy link
Copy Markdown
Contributor

💔 Build Failed

@elasticmachine
Copy link
Copy Markdown
Contributor

💔 Build Failed

Copy link
Copy Markdown
Contributor

@chrisronline chrisronline left a comment

Choose a reason for hiding this comment

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

LGTM! Nice work! Pending tests passing of course :)

@elasticmachine
Copy link
Copy Markdown
Contributor

💔 Build Failed

@elasticmachine
Copy link
Copy Markdown
Contributor

💚 Build Succeeded

@igoristic igoristic merged commit 0a9585f into elastic:master Jun 4, 2019
@igoristic igoristic deleted the 33614 branch June 4, 2019 23:56
igoristic added a commit to igoristic/kibana that referenced this pull request Jun 4, 2019
…ic#37120)

* Optimized content to be more vertical for resizing consistancy

* Fixed snapshots

* Feedback changes

* Update _summary_status.scss

* Fixed column order for testing
@igoristic
Copy link
Copy Markdown
Contributor Author

Backport:
7.x: b14d519

igoristic added a commit that referenced this pull request Jun 5, 2019
… (#38058)

* Optimized content to be more vertical for resizing consistancy

* Fixed snapshots

* Feedback changes

* Update _summary_status.scss

* Fixed column order for testing
patrykkopycinski pushed a commit to patrykkopycinski/kibana that referenced this pull request May 6, 2026
…ic#37120)

* Optimized content to be more vertical for resizing consistancy

* Fixed snapshots

* Feedback changes

* Update _summary_status.scss

* Fixed column order for testing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Fixes for quality problems that affect the customer experience Team:Monitoring Stack Monitoring team v7.2.0 v8.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Kibana monitoring nodes page looks bad at < 1400px width

4 participants