diff options
author | Jlll1 <arghantentua@tutanota.com> | 2022-05-24 11:42:50 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-24 11:42:50 +0200 |
commit | bf28e1daf17abe548459ddd82347c3f0c5f0f24a (patch) | |
tree | fc163de539c373a9540e0d306653fd2e7bb39ba6 /client/src/app/shared/shared-video-miniature | |
parent | 3329325a64c21067a598ea42a5c7eb0c489aedea (diff) | |
download | PeerTube-bf28e1daf17abe548459ddd82347c3f0c5f0f24a.tar.gz PeerTube-bf28e1daf17abe548459ddd82347c3f0c5f0f24a.tar.zst PeerTube-bf28e1daf17abe548459ddd82347c3f0c5f0f24a.zip |
(#4959) Add 'Originally Published At' sort option in videos pages (#4977)
* 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>
Diffstat (limited to 'client/src/app/shared/shared-video-miniature')
-rw-r--r-- | client/src/app/shared/shared-video-miniature/video-filters-header.component.html | 1 | ||||
-rw-r--r-- | client/src/app/shared/shared-video-miniature/video-filters-header.component.scss | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/client/src/app/shared/shared-video-miniature/video-filters-header.component.html b/client/src/app/shared/shared-video-miniature/video-filters-header.component.html index a07b8b5ee..fe7a59bdb 100644 --- a/client/src/app/shared/shared-video-miniature/video-filters-header.component.html +++ b/client/src/app/shared/shared-video-miniature/video-filters-header.component.html | |||
@@ -44,6 +44,7 @@ | |||
44 | [searchable]="false" | 44 | [searchable]="false" |
45 | > | 45 | > |
46 | <ng-option i18n value="-publishedAt">Sort by <strong>"Recently Added"</strong></ng-option> | 46 | <ng-option i18n value="-publishedAt">Sort by <strong>"Recently Added"</strong></ng-option> |
47 | <ng-option i18n value="-originallyPublishedAt">Sort by <strong>"Original Publication Date"</strong></ng-option> | ||
47 | 48 | ||
48 | <ng-option i18n *ngIf="isTrendingSortEnabled('most-viewed')" value="-trending">Sort by <strong>"Recent Views"</strong></ng-option> | 49 | <ng-option i18n *ngIf="isTrendingSortEnabled('most-viewed')" value="-trending">Sort by <strong>"Recent Views"</strong></ng-option> |
49 | <ng-option i18n *ngIf="isTrendingSortEnabled('hot')" value="-hot">Sort by <strong>"Hot"</strong></ng-option> | 50 | <ng-option i18n *ngIf="isTrendingSortEnabled('hot')" value="-hot">Sort by <strong>"Hot"</strong></ng-option> |
diff --git a/client/src/app/shared/shared-video-miniature/video-filters-header.component.scss b/client/src/app/shared/shared-video-miniature/video-filters-header.component.scss index 8cb1ff5b8..6a968ed5c 100644 --- a/client/src/app/shared/shared-video-miniature/video-filters-header.component.scss +++ b/client/src/app/shared/shared-video-miniature/video-filters-header.component.scss | |||
@@ -101,7 +101,7 @@ | |||
101 | } | 101 | } |
102 | 102 | ||
103 | .sort { | 103 | .sort { |
104 | min-width: 200px; | 104 | min-width: 250px; |
105 | max-width: 300px; | 105 | max-width: 300px; |
106 | height: min-content; | 106 | height: min-content; |
107 | 107 | ||