forked from cryptoadvance/specter-desktop
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bugfix: Pagination in transactions and coin selection (cryptoadvance#…
…1778) * pagination: bugfix + prettify * make paginationContainer disappear if there is only one page
- Loading branch information
1 parent
af4d5df
commit 21e925b
Showing
4 changed files
with
65 additions
and
21 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 18 additions & 10 deletions
28
src/cryptoadvance/specter/templates/includes/page-limit-select.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,34 @@ | ||
<div style="display: flex; align-items: center;"> | ||
<style> | ||
.page-limit-label { | ||
float: left; | ||
flex: 1 0 auto; | ||
} | ||
.page-limit-fieldset { | ||
float: left; | ||
border: none; | ||
margin-top: 4px; /*to better vertically align on tx history / utxo list overview*/ | ||
display: inline; | ||
} | ||
.page-limit-fieldset > select { | ||
min-width: 5em; | ||
.page-limit-select { | ||
background-color: var(--cmap-bg-lighter); | ||
background-repeat: no-repeat; | ||
appearance: none; /* Remove default arrow */ | ||
background-image: url(/../../static/img/down-arrow.svg); | ||
background-position: right; | ||
background-size: 1.3em; | ||
min-width: 80px; | ||
} | ||
.page-limit-option { | ||
background-color: var(--cmap-bg-lighter); | ||
} | ||
</style> | ||
<span class="page-limit-label">{{ _("Page limit") }}: </span> | ||
<fieldset class="page-limit-fieldset"> | ||
<select class="page-limit-select"> | ||
<option value="10">10</option> | ||
<option value="25" selected>25</option> | ||
<option value="50">50</option> | ||
<option value="100">100</option> | ||
<option value="0">{{ _("All") }}</option> | ||
<option value="" class="page-limit-option" disabled="disabled">Entries</option> | ||
<option value="10" class="page-limit-option">10</option> | ||
<option value="25" selected class="page-limit-option">25</option> | ||
<option value="50" class="page-limit-option">50</option> | ||
<option value="100" class="page-limit-option">100</option> | ||
<option value="0" class="page-limit-option">{{ _("All") }}</option> | ||
</select> | ||
</fieldset> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters