Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/UI gradient fix #3119

Merged
merged 3 commits into from
Aug 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions UI/Web/src/app/_pipes/provider-image.pipe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@ import {ScrobbleProvider} from "../_services/scrobbling.service";
})
export class ProviderImagePipe implements PipeTransform {

transform(value: ScrobbleProvider): string {
transform(value: ScrobbleProvider, large: boolean = false): string {
switch (value) {
case ScrobbleProvider.AniList:
return 'assets/images/ExternalServices/AniList.png';
return `assets/images/ExternalServices/AniList${large ? '-lg' : ''}.png`;
case ScrobbleProvider.Mal:
return 'assets/images/ExternalServices/MAL.png';
return `assets/images/ExternalServices/MAL${large ? '-lg' : ''}.png`;
case ScrobbleProvider.GoogleBooks:
return 'assets/images/ExternalServices/GoogleBooks.png';
return `assets/images/ExternalServices/GoogleBooks${large ? '-lg' : ''}.png`;
case ScrobbleProvider.Kavita:
return 'assets/images/logo-32.png';
return `assets/images/logo-${large ? '64' : '32'}.png`;
}
}

Expand Down
3 changes: 3 additions & 0 deletions UI/Web/src/app/app.component.scss
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@
z-index: -1;
pointer-events: none;
background-color: #121212;
filter: blur(20px);
object-fit: contain;
transform: scale(1.1);

.background-area {
position: absolute;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
<div class="col-auto custom-col clickable" [ngbPopover]="externalPopContent" [popoverContext]="{rating: rating}"
[popoverTitle]="rating.provider | providerName" popoverClass="sm-popover">
<span class="badge rounded-pill me-1">
<img class="me-1" [ngSrc]="rating.provider | providerImage" width="24" height="24" alt="" aria-hidden="true">
<img class="me-1" [ngSrc]="rating.provider | providerImage:true" width="24" height="24" alt="" aria-hidden="true">
{{rating.averageScore}}%
</span>
</div>
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added UI/Web/src/assets/images/logo-64.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 6 additions & 1 deletion openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"openapi": "3.0.1",
"info": {
"title": "Kavita",
"description": "Kavita provides a set of APIs that are authenticated by JWT. JWT token can be copied from local storage. Assume all fields of a payload are required. Built against v0.8.2.4",
"description": "Kavita provides a set of APIs that are authenticated by JWT. JWT token can be copied from local storage. Assume all fields of a payload are required. Built against v0.8.2.5",
"license": {
"name": "GPL-3.0",
"url": "https://github.com/Kareadita/Kavita/blob/develop/LICENSE"
Expand Down Expand Up @@ -20184,6 +20184,11 @@
"description": "The highest level folder for this Series",
"nullable": true
},
"lowestFolderPath": {
"type": "string",
"description": "Lowest path (that is under library root) that contains all files for the series.",
"nullable": true
},
"lastFolderScanned": {
"type": "string",
"description": "The last time the folder for this series was scanned",
Expand Down
Loading