refactor: change UI of login/list and fix Api not being defined in context

This commit is contained in:
Prayag Prajapati committed 2024-11-20 11:16:22 +05:30
1 parent b0e08ce4bd
commit c8409d8a01
13 files changed
+243 -171

No files matched your search

+13 -10
View File
@@ -115,16 +115,19 @@ const CardComponent = ({
<img
alt={item.Name ?? "blink"}
src={
overrideIcon === "User"
? `${api.basePath}/Users/${item.Id}/Images/Primary`
: getImageUrlsApi(api).getItemImageUrlById(
(seriesId ? item.SeriesId : (item.AlbumId ?? item.Id)) ?? "",
imageType,
{
quality: 90,
fillWidth: cardType === "thumb" ? 560 : 280,
},
)
api
? overrideIcon === "User"
? `${api?.basePath}/Users/${item.Id}/Images/Primary`
: getImageUrlsApi(api).getItemImageUrlById(
(seriesId ? item.SeriesId : (item.AlbumId ?? item.Id)) ??
"",
imageType,
{
quality: 90,
fillWidth: cardType === "thumb" ? 560 : 280,
},
)
: ""
}
style={{
height: "100%",