modxcms/revolution — pull request #11587 by exside (2014-06-26 14:26:08+00:00)
Title: [Re-Build] Enhancement: Media Browser Improvements and Fixes

**This is a REUP from https://github.com/modxcms/revolution/pull/11580** due to merge conflicts I couldn't solve...

This is a proposal for a little enhanced media manager (before it maybe gets completely replaced...) and fixes some issues present in the 2.3 develop branch which are:

- Cut off toolbar buttons because of increased button padding of the new theme -> This is solved by removing the buttons to expand / collapse the tree
- To wide media source combo list when opened
- Fixes non working sort on initial media browser load

This PR also includes some general media manager improvements which are:
- File Detail panel styled a bit better
- File Detail image preview not using the too small thumbnail anymore
- File Detail panel also shows image dimensions if available
- File Detail panel respects manager date and time formats to show last modified date
- File Detail panel separator line in window mode
- Double width for the filter input field
- The media manager allows for an alternative view mode: list of files instead of thumbnail grid (this is also configurable via a new system setting modx_browser_default_viewmode which can be "grid" or "list")

I furthermore separated the styles used for the media browser in a new scss file called _browser.scss and renamed the classes used as they were not really "helpful" in identifying what they actually are.

To give a better impression of what has changed, please watch the following demos

Before:
![modx browser old](https://cloud.githubusercontent.com/assets/445501/3393131/d2cd7828-fcbe-11e3-9340-12e9ebae3db4.gif)

After:
![modx browser new](https://cloud.githubusercontent.com/assets/445501/3393334/d13a1ac6-fcc2-11e3-901d-4b3ef0874ef7.gif)

This PR is related to issues (just quick search, maybe more): https://github.com/modxcms/revolution/issues/11571, https://github.com/modxcms/revolution/issues/11520, https://github.com/modxcms/revolution/issues/2766, https://github.com/modxcms/revolution/issues/6979