From 864795749e36605bc2b345658de6181f922446ad Mon Sep 17 00:00:00 2001 From: F4ilji Date: Thu, 20 Nov 2025 15:58:48 +0500 Subject: [PATCH] Update pagination limit and improve author display in PostListItem --- app/Containers/Article/Tasks/GetPostsTask.php | 2 +- resources/js/Pages/Client/Posts/Index.vue | 2 +- .../posts/components/PostListItem.vue | 24 +++++++++---------- 3 files changed, 13 insertions(+), 15 deletions(-) diff --git a/app/Containers/Article/Tasks/GetPostsTask.php b/app/Containers/Article/Tasks/GetPostsTask.php index bd6ceaf..4b0f6ed 100644 --- a/app/Containers/Article/Tasks/GetPostsTask.php +++ b/app/Containers/Article/Tasks/GetPostsTask.php @@ -51,7 +51,7 @@ class GetPostsTask }); $sort = $filters['sort'] ?? 'desc'; - return $query->orderBy('publish_at', $sort)->paginate(9)->withQueryString(); + return $query->orderBy('publish_at', $sort)->paginate(10)->withQueryString(); }); } } \ No newline at end of file diff --git a/resources/js/Pages/Client/Posts/Index.vue b/resources/js/Pages/Client/Posts/Index.vue index 10a246c..3db1468 100644 --- a/resources/js/Pages/Client/Posts/Index.vue +++ b/resources/js/Pages/Client/Posts/Index.vue @@ -129,7 +129,7 @@ export default {
-
+
diff --git a/resources/js/componentss/features/posts/components/PostListItem.vue b/resources/js/componentss/features/posts/components/PostListItem.vue index d1495e4..ff6a3d0 100644 --- a/resources/js/componentss/features/posts/components/PostListItem.vue +++ b/resources/js/componentss/features/posts/components/PostListItem.vue @@ -58,20 +58,18 @@

-
- -
- - {{ textLimit(post.authors[0], 20) }} - -
+
+ + + {{ textLimit(post.authors[0], 40) }} - - {{ post.created_post }} + + + + + {{ post.created_post }} + +