mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-18 16:22:14 +00:00
responsive paginator fix
This commit is contained in:
@@ -39,9 +39,9 @@
|
|||||||
<slot v-if="!isLoading && !hasData" name="empty-page"></slot>
|
<slot v-if="!isLoading && !hasData" name="empty-page"></slot>
|
||||||
|
|
||||||
<!--Paginator-->
|
<!--Paginator-->
|
||||||
<div v-if="paginator && hasData" class="mt-6 flex items-center justify-between">
|
<div v-if="paginator && hasData" class="mt-6 sm:flex sm:items-center sm:justify-between">
|
||||||
<!--Show if there is only 6 pages-->
|
<!--Show if there is only 6 pages-->
|
||||||
<ul v-if="data.meta.total > 15 && data.meta.last_page <= 6" class="pagination flex items-center">
|
<ul v-if="data.meta.total > 15 && data.meta.last_page <= 6" class="pagination flex justify-center items-center">
|
||||||
<!--Go previous icon-->
|
<!--Go previous icon-->
|
||||||
<li class="previous inline-block p-1">
|
<li class="previous inline-block p-1">
|
||||||
<a
|
<a
|
||||||
@@ -86,7 +86,7 @@
|
|||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<!--Show if there is more than 6 pages-->
|
<!--Show if there is more than 6 pages-->
|
||||||
<ul v-if="data.meta.total > 15 && data.meta.last_page > 6" class="pagination flex items-center">
|
<ul v-if="data.meta.total > 15 && data.meta.last_page > 6" class="pagination flex justify-center items-center">
|
||||||
<!--Go previous icon-->
|
<!--Go previous icon-->
|
||||||
<li class="previous inline-block p-1">
|
<li class="previous inline-block p-1">
|
||||||
<a
|
<a
|
||||||
@@ -191,7 +191,7 @@
|
|||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<span class="text-xs text-gray-600 dark:text-gray-500">
|
<span class="text-xs text-gray-600 dark:text-gray-500 block text-center sm:mt-0 mt-4">
|
||||||
{{ $t('paginator', {from: data.meta.from, to: data.meta.to, total: data.meta.total}) }}
|
{{ $t('paginator', {from: data.meta.from, to: data.meta.to, total: data.meta.total}) }}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user