diff --git a/src/components/Paginator/Paginator.vue b/src/components/Paginator/Paginator.vue index 1b7130f6c324db9430c37f385e2d87fa394ffe1d..7e6aa4bc5c1925bcee8328f25191e7523060154c 100644 --- a/src/components/Paginator/Paginator.vue +++ b/src/components/Paginator/Paginator.vue @@ -65,7 +65,7 @@ const color = computed(() => convertThemeToColor(props.theme, props.darknessThem const textColor = computed(() => convertThemeToTextColor(props.theme, props.darknessTheme)); watch(itemsPerPage, (cur, prev) => { - if (cur > prev) current.value = Math.ceil((current.value * prev) / cur); + if (cur > prev) current.value = Math.round((current.value * prev) / cur); else current.value = Math.ceil((prev * (current.value - 1) + +cur) / cur); }); </script> diff --git a/src/components/Paginator/PaginatorItem.vue b/src/components/Paginator/PaginatorItem.vue index e44b2cafd595dc8d6f03c62f48e3953984cb6218..485bdb99e818884c9c9042e86b4f4c406685dbb2 100644 --- a/src/components/Paginator/PaginatorItem.vue +++ b/src/components/Paginator/PaginatorItem.vue @@ -29,7 +29,7 @@ defineProps<{ </div> </template> -<style> +<style scoped> .item { position: relative; display: flex;