Skip to content

Commit 3cb275b

Browse files
aferciacarolinan
andauthored
Fix the position and size of the Options menu, (#57515)
Co-authored-by: Carolina Nymark <[email protected]>
1 parent 3900de7 commit 3cb275b

File tree

3 files changed

+9
-21
lines changed
  • packages

3 files changed

+9
-21
lines changed

packages/edit-post/src/components/header/style.scss

+1-19
Original file line numberDiff line numberDiff line change
@@ -12,24 +12,6 @@
1212
@include break-zoomed-in {
1313
flex-wrap: nowrap;
1414
}
15-
16-
// Some browsers, most notably IE11, honor an older version of the flexbox spec
17-
// which takes absolutely positioned items into account when calculating `space-between`.
18-
// https://www.w3.org/TR/2012/WD-css3-flexbox-20120612/#abspos-flex-items
19-
//
20-
// This difference is causing our header layout to break when focused in IE11.
21-
// Our focused region styles use an absolutely positioned :after pseudo element to draw an outline,
22-
// and IE11 is adding space between it and our last real child, shifting righthand UI elements
23-
// to the left. For a workaround, we change the flex order to move the undesired spacing to the middle
24-
// where it is no longer noticeable.
25-
> .edit-post-header__settings {
26-
order: 1;
27-
28-
// Restore default order for all other browsers
29-
@supports (position: sticky) {
30-
order: initial;
31-
}
32-
}
3315
}
3416

3517
.edit-post-header__toolbar {
@@ -153,7 +135,7 @@
153135
padding-right: $grid-unit-05;
154136

155137
@include break-small () {
156-
padding-right: $grid-unit-20 - ($grid-unit-15 * 0.5);
138+
padding-right: $grid-unit-10;
157139
}
158140

159141
gap: $grid-unit-10;

packages/edit-site/src/components/header-edit-mode/style.scss

+7-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,13 @@ $header-toolbar-min-width: 335px;
8686
.edit-site-header-edit-mode__actions {
8787
display: inline-flex;
8888
align-items: center;
89-
padding-right: $grid-unit-10;
89+
flex-wrap: nowrap;
90+
padding-right: $grid-unit-05;
91+
92+
@include break-small () {
93+
padding-right: $grid-unit-10;
94+
}
95+
9096
gap: $grid-unit-10;
9197
}
9298

packages/interface/src/components/more-menu-dropdown/style.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
}
1818

1919
.interface-more-menu-dropdown__content .components-popover__content {
20-
min-width: 280px;
20+
min-width: 300px;
2121

2222
// Let the menu scale to fit items.
2323
@include break-mobile() {

0 commit comments

Comments
 (0)