styling changes and config changes

This commit is contained in:
Violet Caulfield
2024-11-29 09:25:43 -06:00
parent 0a562833ba
commit 955fc91f21
6 changed files with 23 additions and 12 deletions
+3 -2
View File
@@ -2,11 +2,12 @@ import { Api } from "@jellyfin/sdk/lib/api"
import { ImageType } from "@jellyfin/sdk/lib/generated-client/models"
import { getImageApi } from "@jellyfin/sdk/lib/utils/api"
export function fetchItemImage(api: Api, itemId: string, imageType?: ImageType) {
export function fetchItemImage(api: Api, itemId: string, imageType?: ImageType, width?: number) {
return getImageApi(api)
.getItemImage({
imageType: imageType ? imageType : ImageType.Primary,
itemId
itemId,
width: width
})
}
+2 -1
View File
@@ -1,6 +1,7 @@
import { Api } from "@jellyfin/sdk/lib/api";
import { BaseItemDto, BaseItemKind, ItemSortBy, SortOrder } from "@jellyfin/sdk/lib/generated-client/models";
import { getItemsApi } from "@jellyfin/sdk/lib/utils/api/items-api";
import { queryConfig } from "../query.config";
export function fetchRecentlyPlayed(api: Api, libraryId: string): Promise<BaseItemDto[]> {
@@ -12,7 +13,7 @@ export function fetchRecentlyPlayed(api: Api, libraryId: string): Promise<BaseIt
includeItemTypes: [
BaseItemKind.Audio
],
limit: 100,
limit: queryConfig.limits.recents,
parentId: libraryId,
recursive: true,
sortBy: [