Skip to content

UI not using full window width due to place-items: center on <body> #876

Closed as not planned

Description

@suryapratapsingh5674

🐛 Bug Report

Version:
MCP Inspector v0.15.0

Environment:

Browser: Microsoft edge

OS: Windows 11

Description

When opening MCP Inspector in a browser, the UI does not expand to the full width of the window. It appears centered with extra blank space on both sides.

After inspecting the styles, this issue is caused by the following CSS rule in the tag:

body {
margin: 0;
place-items: center;
min-width: 320px;
min-height: 100vh;
}

This centers the entire app vertically and horizontally, which restricts it from taking up the full available width.

Steps to Reproduce

Open MCP Inspector v0.15.0 in a browser.

Observe that the UI is centered and not spanning the full width.

Open Developer Tools → Elements → CSS styles.

Disable or remove the place-items: center; property from the body.

Expected Behavior

The UI should expand to the full window width (like a normal app layout).

Actual Behavior

The entire UI stays centered with empty margins on both sides due to the grid centering rule.

Proposed Fix

Remove or modify the place-items: center; property from the body element.
You can use the following fix:

body {
margin: 0;
/* Remove place-items:center to allow full width layout */
min-width: 320px;
min-height: 100vh;
}

Or simply switch the layout approach depending on design needs.

Screenshot (Optional)

Before removing place-items:center

Image

After removing place-items:center

Image

Additional Notes

Removing the place-items: center; instantly fixes the issue and restores normal full-width behavior.

Activity

  1. added
    bug
    on Oct 26, 2025
  2. added
    closed-v1-deprecated
    on Aug 1, 2026
  3. cliffhall commented on Aug 1, 2026

    @cliffhall
    Member

    Closing: v1 is deprecated.

    Thank you for reporting this, and apologies for the long wait for a response.

    v1 will receive security fixes only — this issue describes a functionality, compatibility, or usability problem rather than a vulnerability, so it is being closed against v1. This is not a judgment on whether the problem is real — it's a consequence of the v1 line being frozen. This is happening as part of #1872.

    If this still happens in v2, we'd genuinely like to know. v2 is a complete rewrite — three clients over a shared core — so many v1 behaviours no longer exist in the same form. Please open a fresh issue against v2 with steps to reproduce, and we'll look at it. Note that we accept external contributions as issues rather than pull requests; maintainers handle design and implementation through a prompt-driven workflow. See CONTRIBUTING.md.

    Thanks for taking the time to report it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugclosed-v1-deprecatedv1

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions