From 5ea7853dd685cc4e356fe7ade94bb8f3ca88b870 Mon Sep 17 00:00:00 2001 From: kolaente Date: Fri, 17 Apr 2026 16:25:52 +0200 Subject: [PATCH] refactor(frontend): port pagination rules into BasePagination and drop Bulma import The Bulma components/pagination partial is only used by BasePagination and its two wrappers (Pagination.vue, PaginationEmit.vue); no other component renders raw .pagination-* markup. Ports the rules we actually use (base layout, item sizing, hover/focus/disabled states, is-current styling, mobile/tablet breakpoints) into BasePagination's scoped styles, using :deep() to reach slotted children. The theme override for .pagination-link on .has-background containers moves into an unscoped style block on the same component. Drops the now-unused @import. --- .../src/components/base/BasePagination.vue | 161 +++++++++++++++++- frontend/src/styles/global.scss | 2 +- frontend/src/styles/theme/background.scss | 5 - 3 files changed, 156 insertions(+), 12 deletions(-) diff --git a/frontend/src/components/base/BasePagination.vue b/frontend/src/components/base/BasePagination.vue index 6d7684af3..f253b89ba 100644 --- a/frontend/src/components/base/BasePagination.vue +++ b/frontend/src/components/base/BasePagination.vue @@ -82,22 +82,171 @@ const pages = computed(() => createPagination(props.totalPages, props.currentPag - + + + diff --git a/frontend/src/styles/global.scss b/frontend/src/styles/global.scss index 3294ef496..c81699c02 100644 --- a/frontend/src/styles/global.scss +++ b/frontend/src/styles/global.scss @@ -51,7 +51,7 @@ //@import "bulma-css-variables/sass/components/message"; // not used // @import "bulma-css-variables/sass/components/modal"; // not used; Modal.vue owns its own dialog-based styles // @import "bulma-css-variables/sass/components/navbar"; // not used; ported into AppHeader.vue -@import "bulma-css-variables/sass/components/pagination"; +// @import "bulma-css-variables/sass/components/pagination"; // ported into BasePagination.vue // @import "bulma-css-variables/sass/components/panel"; // not used // @import "bulma-css-variables/sass/components/tabs"; // not used diff --git a/frontend/src/styles/theme/background.scss b/frontend/src/styles/theme/background.scss index b439573ca..86c66f91c 100644 --- a/frontend/src/styles/theme/background.scss +++ b/frontend/src/styles/theme/background.scss @@ -10,11 +10,6 @@ min-height: 100vh; } - // FIXME: move to pagination component - .pagination-link:not(.is-current) { - background: var(--grey-100); - } - .box, .card, .switch-view,