mirror of
https://github.com/flarum/framework.git
synced 2025-06-01 04:56:58 +08:00
Use default dropdown appearance for sort dropdown
This commit is contained in:
@ -213,9 +213,8 @@ export default class IndexPage extends Page {
|
|||||||
|
|
||||||
items.add('sort',
|
items.add('sort',
|
||||||
Dropdown.component({
|
Dropdown.component({
|
||||||
buttonClassName: "Select-input FormControl",
|
buttonClassName: 'Button',
|
||||||
label: sortOptions[this.params().sort] || Object.keys(sortMap).map(key => sortOptions[key])[0],
|
label: sortOptions[this.params().sort] || Object.keys(sortMap).map(key => sortOptions[key])[0],
|
||||||
caretIcon: "sort",
|
|
||||||
children: Object.keys(sortOptions).map(value => {
|
children: Object.keys(sortOptions).map(value => {
|
||||||
const label = sortOptions[value];
|
const label = sortOptions[value];
|
||||||
const active = (this.params().sort || Object.keys(sortMap)[0]) === value;
|
const active = (this.params().sort || Object.keys(sortMap)[0]) === value;
|
||||||
|
Reference in New Issue
Block a user