Media Grid: Don't show attachment details in the "sidebar" for errors.
Props ocean90. Fixes #29037. Built from https://develop.svn.wordpress.org/trunk@29527 git-svn-id: http://core.svn.wordpress.org/trunk@29303 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
6d342e812f
commit
29a73daa74
|
@ -476,6 +476,12 @@
|
|||
margin: 0;
|
||||
}
|
||||
|
||||
.sidebar-for-errors .attachment-details,
|
||||
.sidebar-for-errors .compat-item,
|
||||
.sidebar-for-errors .media-progress-bar,
|
||||
.sidebar-for-errors .upload-details {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
/**
|
||||
* Menu
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -476,6 +476,12 @@
|
|||
margin: 0;
|
||||
}
|
||||
|
||||
.sidebar-for-errors .attachment-details,
|
||||
.sidebar-for-errors .compat-item,
|
||||
.sidebar-for-errors .media-progress-bar,
|
||||
.sidebar-for-errors .upload-details {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
/**
|
||||
* Menu
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -5771,6 +5771,10 @@
|
|||
|
||||
if ( ! this.options.sidebar || 'errors' === this.options.sidebar ) {
|
||||
this.$el.addClass( 'hide-sidebar' );
|
||||
|
||||
if ( 'errors' === this.options.sidebar ) {
|
||||
this.$el.addClass( 'sidebar-for-errors' );
|
||||
}
|
||||
}
|
||||
|
||||
this.collection.on( 'add remove reset', this.updateContent, this );
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue