From 1b436bb3e0af5e86a2a8e7ca5a49392d2f0f1d11 Mon Sep 17 00:00:00 2001 From: MHSanaei Date: Tue, 19 May 2026 17:02:34 +0200 Subject: [PATCH] fix(clients): honor global pageSize and widen size-changer dropdown Read pageSize from defaultSettings and apply it to the clients table so the panel-wide pagination preference is respected. Widen the AntD size-changer trigger and its teleported popup so '100 / page' no longer truncates. --- frontend/src/pages/clients/ClientsPage.vue | 53 +++++++++++++++++----- frontend/src/pages/clients/useClients.js | 3 ++ 2 files changed, 45 insertions(+), 11 deletions(-) diff --git a/frontend/src/pages/clients/ClientsPage.vue b/frontend/src/pages/clients/ClientsPage.vue index e1a03263..7c37d577 100644 --- a/frontend/src/pages/clients/ClientsPage.vue +++ b/frontend/src/pages/clients/ClientsPage.vue @@ -43,6 +43,7 @@ const { tgBotEnable, expireDiff, trafficDiff, + pageSize, create, update, remove, @@ -442,6 +443,10 @@ function expiryColor(row) { const sortState = ref({ column: null, order: null }); const paginationState = ref({ current: 1, pageSize: 20 }); +watch(pageSize, (next) => { + if (next > 0) paginationState.value.pageSize = next; +}, { immediate: true }); + function sortableCol(col, key) { return { ...col, @@ -670,8 +675,9 @@ const columns = computed(() => [ - +