Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions projects/js-packages/base-styles/admin-page-layout.scss
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,19 @@ $jp-breakpoint-mobile: 782px;
display: none;
}

// `#screen-meta-links` (the "Screen Options" / "Help" tabs container) is
// always emitted by core's admin header, even when empty. Core CSS gives
// it `margin: 0 10px 20px 0`, and on WP.com (`is-nav-unification`) the
// wpcom toolbar adds extra buttons + margins. With `#wpbody-content`
// flipped to `position: fixed` flex, that bottom margin reserves a 20px
// slot at the top of the column and pushes `.jp-admin-page` down. None of
// our React admin pages register screen-options or help tabs, so hide it.
// (`#screen-meta` itself stays alone — core defaults it to `display:none`
// and toggles it on click; we never trigger that here.)
#screen-meta-links {
display: none;
}

// ── Viewport-pinned content column ────────────────────────────────
// `position: fixed` pins the content column to the viewport. The
// sidebar (`#adminmenumain`) is left untouched — it can grow past
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: fixed

Hide #screen-meta-links inside the jetpack-admin-page-layout mixin so the wp-admin Screen Options/Help wrapper stops reserving a 20px slot at the top of the content column.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: changed

Drop the local `#screen-meta` / `#screen-meta-links` hide rule now that the shared admin-page-layout mixin handles it.
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
@use "scss/variables";
@use "scss/rna-styles";

#screen-meta,
#screen-meta-links {
display: none;
}

#jp-search-dashboard {
color: variables.$black;
font-size: 16px;
Expand Down
Loading