From 076d207fc1e93289db544a84456d80f702e7b3b6 Mon Sep 17 00:00:00 2001 From: Kelly Choyce-Dwan Date: Tue, 16 Nov 2021 17:16:07 +0000 Subject: [PATCH] Themes: Force a scrollbar on the Themes page to prevent visual shake on hover. On some browser & window size combinations (near where a scrollbar would appear), hovering over the theme card causes a layout shift. This makes the screen visually "jump" as the scrollbar appears and disappears. By forcing the scrollbar to be visible on this page, hovering doesn't cause the layout shift anymore. Props wparslan, sabernhardt, costdev, audrasjb. Fixes #53478. git-svn-id: https://develop.svn.wordpress.org/trunk@52185 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/css/themes.css | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/wp-admin/css/themes.css b/src/wp-admin/css/themes.css index 04bfdd00f7..8aed203aec 100644 --- a/src/wp-admin/css/themes.css +++ b/src/wp-admin/css/themes.css @@ -7,6 +7,10 @@ 16.1 - Manage Themes ------------------------------------------------------------------------------*/ +.themes-php { + overflow-y: scroll; +} + body.js .theme-browser.search-loading { display: none; }