Remove (first) sort label, replace (last) with icon
This commit is contained in:
parent
2646d910ab
commit
d38c3c662e
|
@ -848,14 +848,6 @@
|
|||
"message": "oldest first",
|
||||
"description": "Text added to indicate that sorting a date would add the oldest entries at the top"
|
||||
},
|
||||
"sortLabelFirst": {
|
||||
"message": "first",
|
||||
"description": "Text added to indicate that entry with a disabled or usercss label will be sorted first (at the top)"
|
||||
},
|
||||
"sortLabelLast": {
|
||||
"message": "last",
|
||||
"description": "Text added to indicate that entry with a disabled or usercss label will be sorted last (at the bottom)"
|
||||
},
|
||||
"sortLabelTitleAsc": {
|
||||
"message": "Title Ascending",
|
||||
"description": "Text added to option group to indicate a block of options that apply a title ascending (A to Z) sort"
|
||||
|
|
|
@ -848,7 +848,7 @@ input[id^="manage.newUI"] {
|
|||
|
||||
#sort-wrapper .sorter-selection {
|
||||
position: relative;
|
||||
max-width: calc(100% - 15px);
|
||||
width: calc(100% - 15px);
|
||||
}
|
||||
|
||||
#search, #sort-select {
|
||||
|
@ -866,6 +866,7 @@ input[id^="manage.newUI"] {
|
|||
|
||||
#sort-select {
|
||||
padding-right: 18px;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#search-help, #sorter-help {
|
||||
|
@ -972,13 +973,7 @@ input[id^="manage.newUI"] {
|
|||
}
|
||||
|
||||
#sort-select {
|
||||
font-family: 'sorticon', arial;
|
||||
speak: none;
|
||||
font-style: normal;
|
||||
font-weight: normal;
|
||||
font-variant: normal;
|
||||
text-transform: none;
|
||||
line-height: 1;
|
||||
font-family: 'sorticon', Arial;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
|
|
|
@ -88,8 +88,6 @@ var sorter = (() => {
|
|||
disabled: t('genericDisabledLabel'),
|
||||
dateNew: ` (${t('sortDateNewestFirst')})`,
|
||||
dateOld: ` (${t('sortDateOldestFirst')})`,
|
||||
labelFirst: ` (${t('sortLabelFirst')})`,
|
||||
labelLast: ` (${t('sortLabelLast')})`,
|
||||
groupAsc: t('sortLabelTitleAsc'),
|
||||
groupDesc: t('sortLabelTitleDesc')
|
||||
};
|
||||
|
@ -111,8 +109,7 @@ var sorter = (() => {
|
|||
return acc + (acc !== '' ? ' + ' : '') + tagData[val].text;
|
||||
}
|
||||
if (lastTag.indexOf('date') > -1) return acc + meta[val === 'desc' ? 'dateNew' : 'dateOld'];
|
||||
if (lastTag === 'disabled') return acc + meta[val === 'desc' ? 'enabled' : 'disabled'] + meta['labelFirst'];
|
||||
if (lastTag !== 'title') return acc + meta[val === 'desc' ? 'labelLast' : 'labelFirst'];
|
||||
if (lastTag === 'disabled') return acc + meta[val === 'desc' ? 'enabled' : 'disabled'];
|
||||
return acc + (meta[val] || '');
|
||||
}, '');
|
||||
opt.value = sort;
|
||||
|
|
Loading…
Reference in New Issue
Block a user