diff --git a/CHANGELOG.md b/CHANGELOG.md index f97c5efb7..38d383651 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ - Added New Post notification to Timeline ([a0e7c4d5](https://github.com/pixelfed/pixelfed/commit/a0e7c4d5)) - Add Instagram Import ([e2a6bdd0](https://github.com/pixelfed/pixelfed/commit/e2a6bdd0)) - Add notification preview to NotificationCard ([28445e27](https://github.com/pixelfed/pixelfed/commit/28445e27)) +- Add Grid Mode to Timelines ([c1853ca8](https://github.com/pixelfed/pixelfed/commit/c1853ca8)) ### Updated - Updated PostComponent, fix remote urls ([42716ccc](https://github.com/pixelfed/pixelfed/commit/42716ccc)) diff --git a/public/js/timeline.js b/public/js/timeline.js index e49bdae56..6a86f162c 100644 Binary files a/public/js/timeline.js and b/public/js/timeline.js differ diff --git a/public/mix-manifest.json b/public/mix-manifest.json index 402d0a6d0..62e0303bc 100644 Binary files a/public/mix-manifest.json and b/public/mix-manifest.json differ diff --git a/resources/assets/js/components/Timeline.vue b/resources/assets/js/components/Timeline.vue index f4c2cb5a6..6f7e5f274 100644 --- a/resources/assets/js/components/Timeline.vue +++ b/resources/assets/js/components/Timeline.vue @@ -6,8 +6,19 @@

+
+
+

  {{scope == 'local' ? 'Public' : 'Home'}} Timeline

+

+   Feed +   |   +   Grid +

+
+
+
-
+
@@ -330,6 +341,17 @@
+
+
+

  {{scope == 'local' ? 'Public' : 'Home'}} Timeline

+

+   Feed +   |   +   Grid +

+
+
+
@@ -1557,7 +1579,16 @@ this.feed.unshift(...data); this.morePostsAvailable = false; this.mpData = null; - } + }, + + switchFeedLayout(toggle) { + this.loading = true; + this.layout = toggle; + let self = this; + setTimeout(function() { + self.loading = false; + }, 500); + }, }, beforeDestroy () { clearInterval(this.mpInterval); diff --git a/resources/views/timeline/local.blade.php b/resources/views/timeline/local.blade.php index 47d8572e9..ddc4ef8b5 100644 --- a/resources/views/timeline/local.blade.php +++ b/resources/views/timeline/local.blade.php @@ -8,7 +8,11 @@
+@if(request()->has('l') && request()->input('l') == 'grid') + +@else +@endif