Skip to content

mgr/dashboard: tearsheet-layout-fix - #68440

Merged
afreen23 merged 1 commit into
ceph:mainfrom
rhcs-dashboard:tearsheet-layout-fix
Apr 21, 2026
Merged

afreen23 merged 1 commit into
ceph:mainfrom
rhcs-dashboard:tearsheet-layout-fix

Conversation

@sagargopale2233

@sagargopale2233 sagargopale2233 commented Apr 17, 2026 •

Copy link
Copy Markdown

mgr/dashboard: tearsheet-layout-fix

Fixes: https://tracker.ceph.com/issues/76084

Signed-off-by: Sagar Gopale [email protected]

Summary

Fixes dashboard tearsheet layout on narrow viewports (including macOS Chrome/Safari at 100% zoom): the Review step could hide the modal action bar, and Host access with Restrict to specific hosts could misalign dividers and let the main column visually bleed into the right Added hosts panel.

What was wrong

  1. Create Subsystem → Review
    The wide tearsheet uses a fixed-height flex column on .cds--modal-container--lg. The body section (.tearsheet-body) behaved like a flex item with the default min-height: auto, so it would not shrink shorter than the Review summary. Taller Review content grew past the viewport, so Cancel / Previous / Create sat below the visible area even though earlier wizard steps looked fine.
image (2)
  1. Host access → Restrict to specific hosts
    With the right influencer (two-column layout), the step form still spanned lg: 10 inside a 16-column Carbon grid, so the left column did not use the full width. Combined with the inner content grid, rows / separators could extend visually into the right column instead of staying in the main pane.
Screenshot From 2026-04-17 14-09-01

How this fixes it

  • Modal column: Keep the header from shrinking; make .tearsheet-body a proper flex child (flex: 1 1 auto, min-height: 0, height: auto) so height is bounded and .tearsheet-content scrolls while the footer stays visible.
  • Chain: min-height: 0 / min-inline-size: 0 on the left column / main area where needed; flex-shrink: 0 on the footer.
  • Host step: Span the full inner grid (sm: 4, md: 8, lg: 16) and constrain the inner cds--css-grid split (e.g. overflow-x: hidden on the left content column, stable right column) so layout stays aligned when the right panel is shown.

How to verify

  • Review: Shorten the window height (or DevTools responsive height ~600–700px), open Review — footer actions remain at the bottom of the modal; summary scrolls inside the modal body.
  • Host access: Choose Restrict to specific hosts — form and dividers stay in the left column; Added hosts panel stays clean on the right.
  • Cross-browser: Additionally verified via Browserling (tunneled local dashboard) in remote desktop browsers (e.g. Safari / Chrome) for the same flows.

Contribution Guidelines

  • To sign and title your commits, please refer to Submitting Patches to Ceph.

  • If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.

  • When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an x between the brackets: [x]. Spaces and capitalization matter when checking off items this way.

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
Show available Jenkins commands

You must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.

@pujaoshahu pujaoshahu left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

LGTM

@github-project-automation github-project-automation Bot moved this from New to Reviewer approved in Ceph-Dashboard Apr 17, 2026
@afreen23
afreen23 merged commit 427c845 into ceph:main Apr 21, 2026
6 checks passed
@afreen23
afreen23 deleted the tearsheet-layout-fix branch April 21, 2026 10:49
@github-project-automation github-project-automation Bot moved this from Reviewer approved to Done in Ceph-Dashboard Apr 21, 2026
@github-actions

Copy link
Copy Markdown

This is an automated message by src/script/redmine-upkeep.py.

I found one or more Fixes: tags in the commit messages in

git log 427c845cdf398bbcef91adad9a12e51751ee6cb5^..427c845cdf398bbcef91adad9a12e51751ee6cb5

The referenced tickets are:

Those tickets do not reference this merged Pull Request. If this Pull Request merge resolves any of those tickets, please update the "Pull Request ID" field on each ticket. A future run of this script will appropriately update them.

Update Log: https://github.com/ceph/ceph/actions/runs/24718263973

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

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants