Improved media manager dialog
authorMarcel Werk <burntime@woltlab.com>
Sat, 8 Oct 2016 21:34:17 +0000 (23:34 +0200)
committerMarcel Werk <burntime@woltlab.com>
Sat, 8 Oct 2016 21:34:17 +0000 (23:34 +0200)
wcfsetup/install/files/lib/data/media/MediaAction.class.php
wcfsetup/install/files/style/ui/media.scss

index c1f7d12c95fa801ac3c15fdde9b3b4a1724cd553..245e8d23be87181f31e8dc6032870abe124e54a7 100644 (file)
@@ -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())) {
index e56108dfe0faeb59aa439640275f00c1f8f050af..216c999925a993e11d6d61e3e48de29056239699 100644 (file)
                        box-sizing: border-box;
                        
                        @include wcfFontSmall;
+                       
+                       .mediaTitle {
+                               overflow: hidden;
+                               text-overflow: ellipsis;
+                               white-space: nowrap;
+                       }
                }
                
                > .buttonGroupNavigation {