Make WordPress Core

Changeset 63029


Ignore:
Timestamp:
08/05/2026 01:19:30 PM (4 days ago)
Author:
joedolson
Message:

Media: Fix positioning of active spinner.

Two positioning issues: on desktop, the active spinner appeared off screen, generating a scrollbar in the media toolbar. In the attachment details modal, the spinner overlapped with the Saved confirmation.

On desktop, limit some positioning assignments to only apply with the media modal. In the attachment details, apply display: flex to prevent overlapping.

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

Props afercia, rcorrales, joedolson.
Fixes #65778.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/css/media-views.css

    r62962 r63029  
    365365}
    366366
    367 .media-toolbar-secondary > .spinner {
    368         position: absolute;
    369         left: calc( 100% + 2px );
     367.media-modal .media-toolbar-secondary > .spinner {
     368        position: absolute;
     369        right: -30px;
    370370        top: 50%;
    371371        margin: 0;
     
    18561856        text-transform: none;
    18571857        font-weight: 400;
     1858        display: flex;
    18581859}
    18591860
     
    28432844        }
    28442845
    2845         .media-frame .media-toolbar-secondary .spinner {
     2846        .media-modal .media-frame .media-toolbar-secondary .spinner {
    28462847                top: calc( 50% - 8px );
    28472848        }
     
    28782879        }
    28792880
    2880         .media-frame .media-toolbar-secondary .spinner {
     2881        .media-modal .media-frame .media-toolbar-secondary .spinner {
    28812882                top: 0;
    28822883        }
     
    29012902        }
    29022903
    2903         .media-frame .media-toolbar-secondary .spinner {
    2904                 position: absolute;
    2905                 top: 0;
     2904        .media-modal .media-frame .media-toolbar-secondary .spinner {
    29062905                bottom: 0;
    29072906                margin: auto;
    2908                 left: calc( 100% + 2px );
    2909                 right: 0;
    29102907                z-index: 9;
    29112908        }
Note: See TracChangeset for help on using the changeset viewer.