From 8f64836999b3bf9e923c72ee241dcdfd911b0a1f Mon Sep 17 00:00:00 2001 From: kolaente Date: Fri, 17 Apr 2026 16:40:04 +0200 Subject: [PATCH] refactor(frontend): extract PaginationItem to own pagination-link styling MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit BasePagination was reaching across slot boundaries with :deep() to style .pagination-previous / -next / -link — markup it doesn't actually render. Move that markup and the related scoped rules into a new PaginationItem component that polymorphically renders RouterLink (when `to` is given) or BaseButton (emit-based). BasePagination keeps only the scaffold it actually owns: .pagination, .pagination-list, .pagination-ellipsis. Pagination.vue and PaginationEmit.vue become thin wrappers around BasePagination + PaginationItem; no more raw pagination-* class usage or BaseButton imports in the emit wrapper. The .app-container.has-background / .link-share-container.has-background theme override moves with the .pagination-link rules into PaginationItem as its own unscoped - - - diff --git a/frontend/src/components/misc/Pagination.vue b/frontend/src/components/misc/Pagination.vue index ce63a3a04..971cc01bc 100644 --- a/frontend/src/components/misc/Pagination.vue +++ b/frontend/src/components/misc/Pagination.vue @@ -4,38 +4,39 @@ :current-page="currentPage" > + + + +