Skip to content

Commit

Permalink
Hide some pager elements on small screen sizes
Browse files Browse the repository at this point in the history
Hide page links and ellipses on small screen sizes.
  • Loading branch information
djjuhasz committed Oct 9, 2024
1 parent 2297a7f commit c9d03f2
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions dashboard/src/pages/packages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,17 @@ const toggleLegend = () => {
><IconCaretLeftFill
/></a>
</li>
<li v-if="packageStore.pager.first > 1" aria-hidden="true">
<li
v-if="packageStore.pager.first > 1"
class="d-none d-sm-block"
aria-hidden="true"
>
<a href="#" class="page-link disabled">…</a>
</li>
<li v-for="pg in packageStore.pager.pages">
<li
v-for="pg in packageStore.pager.pages"
:class="{ 'd-none d-sm-block': pg != packageStore.pager.current }"
>
<a
href="#"
:class="{
Expand All @@ -159,6 +166,7 @@ const toggleLegend = () => {
</li>
<li
v-if="packageStore.pager.last < packageStore.pager.total"
class="d-none d-sm-block"
aria-hidden="true"
>
<a href="#" class="page-link disabled">…</a>
Expand Down

0 comments on commit c9d03f2

Please sign in to comment.