﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc	focuses
65276	Media Library: Date filter is offset with empty left space when type filter is hidden	katag9k	joedolson	"
When a `wp.media()` frame is opened with the library restricted to a single mime type (e.g. `library: { type: 'image' }`), the ""Filter by type"" dropdown is correctly hidden, but the ""Filter by date"" dropdown is left visually offset with a large empty space to its left.

== Steps to reproduce (no plugin required) ==

  1. Open `/wp-admin/post-new.php` on a vanilla WP 7.0 install.
  2. In the browser DevTools console, run:
  {{{
  wp.media({ library: { type: 'image' } }).open();
  }}}
  3. Switch to the ""Media Library"" tab.

== Expected behaviour ==

The ""Filter by date"" dropdown should render flush-left where the ""Filter by type"" dropdown would normally sit, as it did in WP 6.x.

== Actual behaviour ==

The ""Filter by date"" dropdown is rendered in the right half of the toolbar with a large empty column to its left. Affects any media modal where the type filter is hidden (for example single-mime-type frames).

"	defect (bug)	accepted	normal	7.0.1	Media	7.0	normal		has-patch		ui, css
