diff --git a/application/index/controller/Index.php b/application/index/controller/Index.php index 51e1374c..eddbbd61 100644 --- a/application/index/controller/Index.php +++ b/application/index/controller/Index.php @@ -44,6 +44,7 @@ class Index extends Base } $images = []; Images::order('id', 'desc') + ->where('user_id', 0) ->paginate($this->request->limit ? $this->request->limit : 30) ->each(function (Images $item) use (&$images) { $images[] = [ diff --git a/application/index/view/index/gallery.html b/application/index/view/index/gallery.html index d03d374e..ad74602c 100644 --- a/application/index/view/index/gallery.html +++ b/application/index/view/index/gallery.html @@ -12,7 +12,7 @@ cursor: pointer; position: relative; overflow: hidden; - margin-bottom: .8rem; + margin-bottom: .5rem; height: 160px; } .image-item .mdui-grid-tile { @@ -28,7 +28,7 @@
-
+
{foreach ($images as $index => $image)}