mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Ability to sort using form fields (for mobile portrait mode)
We now display sort options as a select box plus a descending checkbox, which means you can apply sort orders even in portrait mode on a mobile phone where the column headers are hidden. Closes #199
This commit is contained in:
parent
67982b6ecb
commit
57b19f09d1
4 changed files with 46 additions and 5 deletions
|
|
@ -103,6 +103,10 @@ form label {
|
|||
display: inline-block;
|
||||
width: 15%;
|
||||
}
|
||||
label.sort_by_desc {
|
||||
width: auto;
|
||||
padding-right: 1em;
|
||||
}
|
||||
form input[type=text],
|
||||
form input[type=search] {
|
||||
border: 1px solid #ccc;
|
||||
|
|
@ -216,10 +220,6 @@ form input[type=submit] {
|
|||
.filters input.filter-value {
|
||||
width: 140px;
|
||||
}
|
||||
form input[type=submit] {
|
||||
display: block;
|
||||
margin-top: 0.6em;
|
||||
}
|
||||
}
|
||||
|
||||
a.not-underlined {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue