Skip to content

Conversation

@Lasserich
Copy link
Contributor

Small consistency.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds centering and maximum width constraints to the graph container for improved layout consistency. The change applies inline styling to center the graph horizontally and limit its maximum width.

  • Adds maxWidth of 1280px and horizontal centering to the graph container
  • Reformats the container div for better readability with multiple attributes

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@andreaskienle
Copy link
Contributor

andreaskienle commented Sep 4, 2025

Could you check if we can set the width for the container of the graph instead of the graph itself? Ideally, the parent should determine the dimensions and margins of its components, making them more reusable across different screen sizes.

Maybe it would be enough to just wrap the graph in a <Panel> in <McpPage>? Or in a div with the panel class?

<div className={styles.graphContainer} data-theme={isDarkTheme ? 'dark' : 'light'}>
<div
className={styles.graphContainer}
style={{ maxWidth: '1280px', margin: '0 auto' }}
Copy link
Contributor

Choose a reason for hiding this comment

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

styles for graph are in Graph.module.css graphContainer class. Could you please move it there? :)

Copy link
Contributor

@andreaskienle andreaskienle left a comment

Choose a reason for hiding this comment

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

This doesn't seem to work. At least this is how our playground looks for me (without having interacted with it):

Image

Also the global styles seem pretty suspicious, especially with the !important flag. Why are these necessary? Are we sure that we don't want to allow horizontal scrolling? What should happen if the graph is too large?

@Lasserich
Copy link
Contributor Author

Will be re-vamped with the Bento-Box / UI prototype soon. :)

@Lasserich Lasserich closed this Sep 19, 2025
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