Skip to content

Commit

Permalink
Hide table current page on small screen (#101)
Browse files Browse the repository at this point in the history
* Hide table current page on small screen
  • Loading branch information
MauserBitfly authored Mar 13, 2024
1 parent 211fc2b commit cf9179f
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions frontend/components/bc/table/TablePager.vue
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ watch(() => data.value.lastPage && data.value.lastPage < data.value.page, (match
<div class="item button" :disabled="!currentOffset" @click="prev">
<IconChevron class="toggle" direction="left" />
</div>
<div class="item">
<div class="item current-page">
{{ data.page }} {{ $t('table.of') }} {{ data.lastPage }}
</div>
<div class="item button" :disabled="data.page! >= data.lastPage!" @click="next">
Expand Down Expand Up @@ -148,11 +148,12 @@ watch(() => data.value.lastPage && data.value.lastPage < data.value.page, (match
display: flex;
gap: 3px;
.table{
.table {
@include main.container;
border-top-left-radius: 0;
border-bottom-left-radius: 0;
&.p-overlay-open{
&.p-overlay-open {
border-bottom-right-radius: 0;
}
}
Expand Down Expand Up @@ -193,6 +194,12 @@ watch(() => data.value.lastPage && data.value.lastPage < data.value.page, (match
border-top-right-radius: var(--border-radius);
border-bottom-right-radius: var(--border-radius);
}
@media screen and (max-width: 1399px) {
&.current-page {
display: none;
}
}
}
}
Expand Down

0 comments on commit cf9179f

Please sign in to comment.