Fix friends list table size

This commit is contained in:
Natsumi
2026-02-28 17:09:23 +11:00
parent 5565cfc6f6
commit 93c34209b4
5 changed files with 6 additions and 15 deletions
@@ -153,9 +153,7 @@
); );
const totalItems = computed(() => { const totalItems = computed(() => {
const length = table.getFilteredRowModel().rows.length; return table.getFilteredRowModel().rows.length;
const max = vrcxStore.maxTableSize;
return length > max ? max : length;
}); });
const handlePageSizeChange = (size) => { const handlePageSizeChange = (size) => {
@@ -237,9 +237,7 @@
); );
const totalItems = computed(() => { const totalItems = computed(() => {
const length = table.getFilteredRowModel().rows.length; return table.getFilteredRowModel().rows.length;
const max = vrcxStore.maxTableSize;
return length > max ? max : length;
}); });
const handlePageSizeChange = (size) => { const handlePageSizeChange = (size) => {
+2 -4
View File
@@ -124,10 +124,10 @@
import { Button } from '@/components/ui/button'; import { Button } from '@/components/ui/button';
import { InputGroupField } from '@/components/ui/input-group'; import { InputGroupField } from '@/components/ui/input-group';
import { Progress } from '@/components/ui/progress'; import { Progress } from '@/components/ui/progress';
import { Star } from 'lucide-vue-next';
import { storeToRefs } from 'pinia'; import { storeToRefs } from 'pinia';
import { toast } from 'vue-sonner'; import { toast } from 'vue-sonner';
import { useI18n } from 'vue-i18n'; import { useI18n } from 'vue-i18n';
import { Star } from 'lucide-vue-next';
import { useRoute } from 'vue-router'; import { useRoute } from 'vue-router';
import { import {
@@ -217,9 +217,7 @@
}); });
const totalItems = computed(() => { const totalItems = computed(() => {
const length = table.getFilteredRowModel().rows.length; return table.getFilteredRowModel().rows.length;
const max = vrcxStore.maxTableSize;
return length > max ? max : length;
}); });
const handlePageSizeChange = (size) => { const handlePageSizeChange = (size) => {
+1 -2
View File
@@ -191,8 +191,7 @@
}); });
const totalItems = computed(() => { const totalItems = computed(() => {
const length = table.getFilteredRowModel().rows.length; return table.getFilteredRowModel().rows.length;
return length;
}); });
const handlePageSizeChange = (size) => { const handlePageSizeChange = (size) => {
+1 -3
View File
@@ -173,9 +173,7 @@
}); });
const totalItems = computed(() => { const totalItems = computed(() => {
const length = table.getFilteredRowModel().rows.length; return table.getFilteredRowModel().rows.length;
const max = vrcxStore.maxTableSize;
return length > max && length < max + 51 ? max : length;
}); });
const handlePageSizeChange = (size) => { const handlePageSizeChange = (size) => {