From fdfa76eb852acc4a77bb8266128e7098a0005741 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Sat, 8 Oct 2016 23:34:17 +0200 Subject: [PATCH] Improved media manager dialog --- wcfsetup/install/files/lib/data/media/MediaAction.class.php | 5 ++++- wcfsetup/install/files/style/ui/media.scss | 6 ++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/data/media/MediaAction.class.php b/wcfsetup/install/files/lib/data/media/MediaAction.class.php index c1f7d12c95..245e8d23be 100644 --- a/wcfsetup/install/files/lib/data/media/MediaAction.class.php +++ b/wcfsetup/install/files/lib/data/media/MediaAction.class.php @@ -174,6 +174,8 @@ class MediaAction extends AbstractDatabaseObjectAction implements ISearchAction, if ($this->parameters['imagesOnly']) { $mediaList->getConditionBuilder()->add('media.isImage = ?', [1]); } + $mediaList->sqlOrderBy = 'media.uploadTime DESC'; + $mediaList->sqlLimit = 50; $mediaList->readObjects(); return [ @@ -409,7 +411,8 @@ class MediaAction extends AbstractDatabaseObjectAction implements ISearchAction, if ($this->parameters['imagesOnly']) { $mediaList->getConditionBuilder()->add('media.isImage = ?', [1]); } - + $mediaList->sqlOrderBy = 'media.uploadTime DESC'; + $mediaList->sqlLimit = 50; $mediaList->readObjectIDs(); if (empty($mediaList->getObjectIDs())) { diff --git a/wcfsetup/install/files/style/ui/media.scss b/wcfsetup/install/files/style/ui/media.scss index e56108dfe0..216c999925 100644 --- a/wcfsetup/install/files/style/ui/media.scss +++ b/wcfsetup/install/files/style/ui/media.scss @@ -80,6 +80,12 @@ box-sizing: border-box; @include wcfFontSmall; + + .mediaTitle { + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + } } > .buttonGroupNavigation { -- 2.20.1