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 issue with EdgesTable Grid wrapper #3740

Merged
merged 1 commit into from
Nov 26, 2019

Conversation

cynthia-sg
Copy link
Contributor

Remove Grid wrapper around EdgesTable component in resource detail page.



Fixes #3601

image

Signed-off-by: Cintia Sanchez Garcia cynthiasg@icloud.com

Signed-off-by: Cintia Sanchez Garcia <cynthiasg@icloud.com>
@cynthia-sg cynthia-sg self-assigned this Nov 19, 2019
@@ -380,15 +380,11 @@ export class ResourceDetailBase extends React.Component {
isTcpTable={true}
metrics={this.state.podMetrics} />

<Grid container direction="column" justify="center">
<Grid item>
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Another solution would be to add prop xs={12} to Grid item, but I think that removing these extra Grids is better.

@scottcarol
Copy link
Contributor

Great fix! To test this PR, I used the Chrome DevTools "Toggle Device Toolbar" button:
Screen Shot 2019-11-25 at 3 15 58 PM

to toggle mobile view. I looked at the detail page for a Pod in master and see that the Edges table is wider than the screen, unlike other tables, which is also affecting the sidebar font size:

Screen Shot 2019-11-25 at 3 20 29 PM

then I looked at the detail page in this branch and saw that the Edges table is formatted properly, and the sidebar font size stays consistent.

Screen Shot 2019-11-25 at 3 17 57 PM

Copy link
Contributor

@scottcarol scottcarol left a comment

Choose a reason for hiding this comment

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

🚢 👍

Copy link
Member

@alpeb alpeb left a comment

Choose a reason for hiding this comment

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

Looks good to me, thanks! 👍

@scottcarol scottcarol merged commit 62c254d into master Nov 26, 2019
@scottcarol scottcarol deleted the cynthia-sg/edges-table-grid branch November 26, 2019 17:22
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.

In mobile, font size when looking at a pod details is smaller
3 participants