From: Marcel Werk Date: Sat, 8 Oct 2016 21:34:17 +0000 (+0200) Subject: Improved media manager dialog X-Git-Tag: 3.0.0_Beta_3~50^2~49 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=fdfa76eb852acc4a77bb8266128e7098a0005741;p=GitHub%2FWoltLab%2FWCF.git Improved media manager dialog --- 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 {