Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: change the number of queried attachments in the selector modal #6402

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const emit = defineEmits<{

const selectedGroup = ref();
const page = ref(1);
const size = ref(60);
const size = ref(20);

const {
attachments,
Expand Down Expand Up @@ -138,7 +138,7 @@ function onGroupSelect(group: Group) {
</VEmpty>
<div
v-else
class="mt-2 grid grid-cols-3 gap-x-2 gap-y-3 sm:grid-cols-3 md:grid-cols-6 xl:grid-cols-8 2xl:grid-cols-10"
class="mt-2 grid grid-cols-3 gap-x-2 gap-y-3 sm:grid-cols-3 md:grid-cols-5"
role="list"
>
<VCard
Expand Down Expand Up @@ -218,7 +218,7 @@ function onGroupSelect(group: Group) {
$t('core.components.pagination.total_label', { total: total })
"
:total="total"
:size-options="[60, 120, 200]"
:size-options="[20, 50, 100]"
/>
</div>
<AttachmentUploadModal v-if="uploadVisible" @close="onUploadModalClose" />
Expand Down