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
This commit is contained in:
Kelly Choyce-Dwan 2021-11-16 17:16:07 +00:00
parent f4e75ee8b7
commit 076d207fc1

View File

@ -7,6 +7,10 @@
16.1 - Manage Themes
------------------------------------------------------------------------------*/
.themes-php {
overflow-y: scroll;
}
body.js .theme-browser.search-loading {
display: none;
}