fix: use buttons for grid pagination
This commit is contained in:
parent
4fa6d847e1
commit
2dde01e68f
2 changed files with 12 additions and 12 deletions
|
|
@ -67,19 +67,17 @@ export default class GridPagination {
|
|||
let page_text_html = `<div class="page-text">
|
||||
<span class="current-page-number page-number">${__(this.page_index)}</span>
|
||||
<span>${__('of')}</span>
|
||||
<span class="total-page-number page-number"> ${__(this.total_pages)} </span>
|
||||
<span class="total-page-number page-number"> ${__(this.total_pages)} </span>
|
||||
</div>`;
|
||||
|
||||
return $(`<button class="btn btn-default btn-xs first-page"">
|
||||
<span class="first-page-icon">«</span>
|
||||
return $(`<button class="btn btn-secondary btn-xs first-page"">
|
||||
<span>${__('First')}</span>
|
||||
</button>
|
||||
<a class="prev-page">‹</a>
|
||||
<button class="btn btn-secondary btn-xs prev-page">${frappe.utils.icon('left', 'xs')}</button>
|
||||
${page_text_html}
|
||||
<a class="next-page">›</a>
|
||||
<button class="btn btn-default btn-xs last-page">
|
||||
<button class="btn btn-secondary btn-xs next-page">${frappe.utils.icon('right', 'xs')}</button>
|
||||
<button class="btn btn-secondary btn-xs last-page">
|
||||
<span>${__('Last')}</span>
|
||||
<span class="first-page-icon">»</span>
|
||||
</button>`);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -342,16 +342,18 @@
|
|||
}
|
||||
|
||||
.prev-page, .next-page {
|
||||
font-size: 14px;
|
||||
.icon {
|
||||
width: 10px;
|
||||
}
|
||||
}
|
||||
|
||||
a.prev-page {
|
||||
padding-left: 15px;
|
||||
.prev-page {
|
||||
margin-left: var(--margin-xs);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
a.next-page {
|
||||
padding-right: 15px;
|
||||
.next-page {
|
||||
margin-right: var(--margin-xs);
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue