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

View File

@@ -153,9 +153,7 @@
);
const totalItems = computed(() => {
const length = table.getFilteredRowModel().rows.length;
const max = vrcxStore.maxTableSize;
return length > max ? max : length;
return table.getFilteredRowModel().rows.length;
});
const handlePageSizeChange = (size) => {

View File

@@ -237,9 +237,7 @@
);
const totalItems = computed(() => {
const length = table.getFilteredRowModel().rows.length;
const max = vrcxStore.maxTableSize;
return length > max ? max : length;
return table.getFilteredRowModel().rows.length;
});
const handlePageSizeChange = (size) => {

View File

@@ -124,10 +124,10 @@
import { Button } from '@/components/ui/button';
import { InputGroupField } from '@/components/ui/input-group';
import { Progress } from '@/components/ui/progress';
import { Star } from 'lucide-vue-next';
import { storeToRefs } from 'pinia';
import { toast } from 'vue-sonner';
import { useI18n } from 'vue-i18n';
import { Star } from 'lucide-vue-next';
import { useRoute } from 'vue-router';
import {
@@ -217,9 +217,7 @@
});
const totalItems = computed(() => {
const length = table.getFilteredRowModel().rows.length;
const max = vrcxStore.maxTableSize;
return length > max ? max : length;
return table.getFilteredRowModel().rows.length;
});
const handlePageSizeChange = (size) => {

View File

@@ -191,8 +191,7 @@
});
const totalItems = computed(() => {
const length = table.getFilteredRowModel().rows.length;
return length;
return table.getFilteredRowModel().rows.length;
});
const handlePageSizeChange = (size) => {

View File

@@ -173,9 +173,7 @@
});
const totalItems = computed(() => {
const length = table.getFilteredRowModel().rows.length;
const max = vrcxStore.maxTableSize;
return length > max && length < max + 51 ? max : length;
return table.getFilteredRowModel().rows.length;
});
const handlePageSizeChange = (size) => {