Make WordPress Core

Changeset 29612


Ignore:
Timestamp:
08/26/2014 04:17:18 AM (10 years ago)
Author:
helen
Message:

Media Grid: Show upload errors above the grid rather than as a popup.

props pento, stephdau, helen. fixes #29141.

Location:
trunk/src
Files:
2 edited

Legend:

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

    r29608 r29612  
    457457
    458458.upload-php .mode-grid .media-sidebar {
    459     z-index: 1900;
    460     top: 102px;
    461     bottom: auto;
    462     background: #fff;
    463     border-left: none;
    464     padding: 16px;
    465     -webkit-box-shadow: -1px 0 1px rgba(0,0,0,.3);
    466     box-shadow: -1px 0 1px rgba(0,0,0,.3);
     459    position: relative;
     460    width: auto;
     461    margin-bottom: 16px;
     462    padding: 0 16px;
     463    border: 1px solid #c00;
     464    background-color: #feebe8;
    467465}
    468466
     
    474472    border-bottom: none;
    475473    padding-bottom: 0;
     474    max-width: 100%;
     475}
     476
     477.upload-php .mode-grid .media-sidebar .upload-error {
     478    margin: 20px 0;
     479    padding: 0;
     480    border: none;
     481    background: none;
    476482}
    477483
    478484.upload-php .mode-grid .media-sidebar .media-uploader-status .upload-dismiss-errors {
    479485    font-size: 0;
    480     top: -20px;
    481     right:  -14px;
     486    top: -12px;
     487    right: -10px;
    482488}
    483489
     
    11961202    }
    11971203}
     1204
     1205@media only screen and (max-width: 640px), screen and (max-height: 400px) {
     1206    .upload-php .mode-grid .media-sidebar{
     1207        max-width: 100%;
     1208    }
     1209}
  • trunk/src/wp-includes/js/media-views.js

    r29609 r29612  
    57505750
    57515751            this.createToolbar();
     5752            if ( this.options.sidebar ) {
     5753                this.createSidebar();
     5754            }
    57525755            this.createUploader();
    57535756            this.createAttachments();
    57545757            this.updateContent();
    5755             if ( this.options.sidebar ) {
    5756                 this.createSidebar();
    5757             }
    57585758
    57595759            if ( ! this.options.sidebar || 'errors' === this.options.sidebar ) {
Note: See TracChangeset for help on using the changeset viewer.