* Add Original Publication Date sort dropdown option in video filters * Make the minimal sort dropdown width 250px to acomodate for 'Originally Published At' option * Improve label Co-authored-by: Chocobozzz <me@florianbigard.com>
This commit is contained in:
parent
3329325a64
commit
bf28e1daf1
|
@ -44,6 +44,7 @@
|
|||
[searchable]="false"
|
||||
>
|
||||
<ng-option i18n value="-publishedAt">Sort by <strong>"Recently Added"</strong></ng-option>
|
||||
<ng-option i18n value="-originallyPublishedAt">Sort by <strong>"Original Publication Date"</strong></ng-option>
|
||||
|
||||
<ng-option i18n *ngIf="isTrendingSortEnabled('most-viewed')" value="-trending">Sort by <strong>"Recent Views"</strong></ng-option>
|
||||
<ng-option i18n *ngIf="isTrendingSortEnabled('hot')" value="-hot">Sort by <strong>"Hot"</strong></ng-option>
|
||||
|
|
|
@ -101,7 +101,7 @@
|
|||
}
|
||||
|
||||
.sort {
|
||||
min-width: 200px;
|
||||
min-width: 250px;
|
||||
max-width: 300px;
|
||||
height: min-content;
|
||||
|
||||
|
|
|
@ -2,6 +2,7 @@ export type VideoSortField =
|
|||
'name' | '-name' |
|
||||
'duration' | '-duration' |
|
||||
'publishedAt' | '-publishedAt' |
|
||||
'originallyPublishedAt' | '-originallyPublishedAt' |
|
||||
'createdAt' | '-createdAt' |
|
||||
'views' | '-views' |
|
||||
'likes' | '-likes' |
|
||||
|
|
Loading…
Reference in New Issue