Skip to content

Commit

Permalink
fix(ui): enhance responsive in pagination
Browse files Browse the repository at this point in the history
  • Loading branch information
gabaldon committed Aug 17, 2021
1 parent 01c9058 commit 37bfa51
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/ui/assets/styles/element-ui.scss
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,17 @@ $--font-path: '~element-ui/lib/theme-chalk/fonts';
background-color: var(--bg);
color: var(--pagination-button);
margin: 4px;
padding-left: 4px;
}

.btn-prev {
background-color: var(--bg);
color: var(--pagination-button);
margin: 4px;
padding-right: 4px;
}

.el-pager li.btn-quicknext, .el-pager li.btn-quickprev {
color: var(--pagination-button);
}
}
6 changes: 6 additions & 0 deletions packages/ui/components/DataFeedDetails.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@
/>
<el-pagination
v-if="numberOfPages > 1"
:small="small"
class="pagination"
layout="prev, pager, next"
:pager-count="4"
:page-count="numberOfPages"
:current-page="currentPage"
@current-change="handleCurrentChange"
Expand Down Expand Up @@ -73,6 +75,9 @@ export default {
}
},
computed: {
small() {
return this.numberOfPages > 10
},
svgIcon() {
return this.feed.name.split('/').join('')
},
Expand Down Expand Up @@ -154,6 +159,7 @@ export default {
}
}
.pagination {
padding-bottom: 72px;
justify-self: center;
}
.chart {
Expand Down

0 comments on commit 37bfa51

Please sign in to comment.