1
0
mirror of https://github.com/amir20/dozzle.git synced 2025-12-21 13:23:07 +01:00

feat: adds a dropdown when pages exceed 10 (#4242)

This commit is contained in:
Amir Raminfar
2025-11-15 10:46:34 -08:00
committed by GitHub
parent 604133b591
commit b09d73736b

View File

@@ -104,7 +104,7 @@
</table>
</div>
<div class="p-4 text-center">
<nav class="join" v-if="isPaginated">
<nav class="join" v-if="isPaginated && totalPages <= 15">
<input
class="btn btn-square join-item"
type="radio"
@@ -114,6 +114,12 @@
v-for="i in totalPages"
/>
</nav>
<DropdownMenu
v-else-if="isPaginated"
class="btn-sm"
v-model="currentPage"
:options="Array.from({ length: totalPages }, (_, i) => ({ label: `${i + 1}`, value: i + 1 }))"
/>
</div>
</div>
</template>