Misc Stuff (#2917)

Co-authored-by: Robbie Davis <robbie@therobbiedavis.com>
Co-authored-by: Fesaa <77553571+Fesaa@users.noreply.github.com>
This commit is contained in:
Joe Milazzo 2024-04-29 14:58:05 -05:00 committed by GitHub
parent 3c9565468a
commit 315a6cca7e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 17 additions and 180 deletions

View file

@ -24,7 +24,8 @@ export enum SortField {
/**
* Kavita+ only
*/
AverageRating = 8
AverageRating = 8,
Random = 9
}
export const allSortFields = Object.keys(SortField)

View file

@ -29,6 +29,8 @@ export class SortFieldPipe implements PipeTransform {
return this.translocoService.translate('sort-field-pipe.read-progress');
case SortField.AverageRating:
return this.translocoService.translate('sort-field-pipe.average-rating');
case SortField.Random:
return this.translocoService.translate('sort-field-pipe.random');
}
}

View file

@ -21,7 +21,7 @@
.content-wrapper {
padding: 0 5px 0;
overflow: hidden;
height: calc(100vh - 56px);
height: calc(var(--vh)*100 - 56px);
&.closed {
overflow: auto;

View file

@ -99,7 +99,7 @@ form {
.dropdown {
width: 100vw;
height: calc(100vh - 56px); //header offset
height: calc(var(--vh)*100 - 56px); //header offset
background: var(--dropdown-overlay-color);
position: fixed;
justify-content: center;

View file

@ -1745,7 +1745,8 @@
"time-to-read": "Time to Read",
"release-year": "Release Year",
"read-progress": "Last Read",
"average-rating": "Average Rating"
"average-rating": "Average Rating",
"random": "Random"
},
"edit-series-modal": {