Make WordPress Core

Changeset 62691


Ignore:
Timestamp:
07/10/2026 09:39:42 PM (5 weeks ago)
Author:
joedolson
Message:

Plugins: Fix plugin modal scrollbar visibility.

Set height of scrollable container to exclude the modal footer so that the bottom of the scrollbar remains visible and accessible. Simplify styling by eliminating small viewport height adjustment. Change modal positioning in mobile viewports to ensure entire modal is visible with a masked margin.

Developed in https://github.com/WordPress/wordpress-develop/pull/11957

Props projektisle, alanjacobmathew, joedolson, sabernhardt.
Fixes #65334.

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/js/_enqueues/admin/plugin-install.js

    r50547 r62691  
    2121        window.tb_position = function() {
    2222                var width = $( window ).width(),
    23                         H = $( window ).height() - ( ( 792 < width ) ? 60 : 20 ),
     23                        H = $( window ).height() - ( ( 792 < width ) ? 60 : 40 ),
    2424                        W = ( 792 < width ) ? 772 : width - 20;
    2525
  • trunk/src/wp-admin/css/common.css

    r62688 r62691  
    28052805        overflow: auto;
    28062806        -webkit-overflow-scrolling: touch;
    2807         height: 100%;
     2807        height: calc(100% - 67px);
    28082808}
    28092809
     
    32053205                display: none;
    32063206        }
    3207 
    3208         #plugin-information-footer {
    3209                 padding: 12px 16px 0;
    3210                 height: 46px;
    3211         }
    32123207}
    32133208
Note: See TracChangeset for help on using the changeset viewer.