Remove (first) sort label, replace (last) with icon

This commit is contained in:
Rob Garrison 2017-12-23 19:30:00 -06:00
parent 2646d910ab
commit d38c3c662e
3 changed files with 4 additions and 20 deletions

View File

@ -848,14 +848,6 @@
"message": "oldest first", "message": "oldest first",
"description": "Text added to indicate that sorting a date would add the oldest entries at the top" "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": { "sortLabelTitleAsc": {
"message": "Title Ascending", "message": "Title Ascending",
"description": "Text added to option group to indicate a block of options that apply a title ascending (A to Z) sort" "description": "Text added to option group to indicate a block of options that apply a title ascending (A to Z) sort"

View File

@ -848,7 +848,7 @@ input[id^="manage.newUI"] {
#sort-wrapper .sorter-selection { #sort-wrapper .sorter-selection {
position: relative; position: relative;
max-width: calc(100% - 15px); width: calc(100% - 15px);
} }
#search, #sort-select { #search, #sort-select {
@ -866,6 +866,7 @@ input[id^="manage.newUI"] {
#sort-select { #sort-select {
padding-right: 18px; padding-right: 18px;
width: 100%;
} }
#search-help, #sorter-help { #search-help, #sorter-help {
@ -972,13 +973,7 @@ input[id^="manage.newUI"] {
} }
#sort-select { #sort-select {
font-family: 'sorticon', arial; font-family: 'sorticon', Arial;
speak: none;
font-style: normal;
font-weight: normal;
font-variant: normal;
text-transform: none;
line-height: 1;
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale; -moz-osx-font-smoothing: grayscale;
} }

View File

@ -88,8 +88,6 @@ var sorter = (() => {
disabled: t('genericDisabledLabel'), disabled: t('genericDisabledLabel'),
dateNew: ` (${t('sortDateNewestFirst')})`, dateNew: ` (${t('sortDateNewestFirst')})`,
dateOld: ` (${t('sortDateOldestFirst')})`, dateOld: ` (${t('sortDateOldestFirst')})`,
labelFirst: ` (${t('sortLabelFirst')})`,
labelLast: ` (${t('sortLabelLast')})`,
groupAsc: t('sortLabelTitleAsc'), groupAsc: t('sortLabelTitleAsc'),
groupDesc: t('sortLabelTitleDesc') groupDesc: t('sortLabelTitleDesc')
}; };
@ -111,8 +109,7 @@ var sorter = (() => {
return acc + (acc !== '' ? ' + ' : '') + tagData[val].text; return acc + (acc !== '' ? ' + ' : '') + tagData[val].text;
} }
if (lastTag.indexOf('date') > -1) return acc + meta[val === 'desc' ? 'dateNew' : 'dateOld']; 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 === 'disabled') return acc + meta[val === 'desc' ? 'enabled' : 'disabled'];
if (lastTag !== 'title') return acc + meta[val === 'desc' ? 'labelLast' : 'labelFirst'];
return acc + (meta[val] || ''); return acc + (meta[val] || '');
}, ''); }, '');
opt.value = sort; opt.value = sort;