Fix: ensure "save draft" button stays visible in editor toolbar at medium screen widths in firefox #67075
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes: #67069
What?
This PR resolves an issue where the "Save Draft" text in the editor toolbar starts appearing behind the document bar when the browser width is reduced to around 1200px. This issue has been specifically observed in Firefox.
Why?
The layout issue was caused by the grid template configuration not adapting well to medium-sized screen widths in Firefox, leading to overlapping elements in the header area. This fix ensures proper alignment and visibility of toolbar elements across different screen sizes and browsers.
How?
The grid template in the CSS was updated within the break-medium media query to better handle medium screen widths. The updated template ensures the "Save Draft" button and other toolbar elements are correctly aligned and remain visible:
@include break-medium { grid-template: auto / $header-height minmax(min-content, 1fr) 2fr minmax(min-content, 2fr) $header-height; }
This adjustment provides a more robust and responsive layout by refining the distribution of space in the header grid.
Testing Instructions
Screenshots or screencast
fix-67069.mp4