Skip to content

Commit 9d0c9b4

Browse files
committed
fix: improve layout by making header and pagination sticky in VisionTable
1 parent d0ade73 commit 9d0c9b4

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

custom/VisionAction.vue

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,10 @@
6666
]"
6767
:click-to-close-outside="false"
6868
>
69-
<div class="bulk-vision-table flex flex-col items-center max-w-[1560px] md:max-h-[75vh] gap-3 md:gap-4 w-full h-full overflow-y-auto">
70-
<div v-if="records && props.checkboxes.length && popupMode === 'generation'" class="[scrollbar-gutter:stable] w-full overflow-x-auto">
69+
<div class="bulk-vision-table flex flex-col items-center gap-3 md:gap-4 overflow-y-auto">
70+
<template v-if="records && props.checkboxes.length && popupMode === 'generation'" >
7171
<VisionTable
72+
class="md:max-h-[75vh] max-w-[1560px] w-full h-full"
7273
:checkbox="props.checkboxes"
7374
:records="records"
7475
:meta="props.meta"
@@ -111,7 +112,7 @@
111112
<div class="text-red-600 flex items-center w-full">
112113
<p v-if="isError === true">{{ errorMessage }}</p>
113114
</div>
114-
</div>
115+
</template>
115116
<div
116117
v-else-if="popupMode === 'settings'"
117118
v-for="(promptsCategory, key) in generationPrompts"

custom/VisionTable.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
:columns="tableHeaders"
44
:data="tableColumns"
55
:pageSize="6"
6+
makeHeaderSticky
7+
makePaginationSticky
68
>
79
<!-- HEADER TEMPLATE -->
810
<template #header:checkboxes="{ item }">

0 commit comments

Comments
 (0)