chore: add kitsu icon to iconLink
This commit is contained in:
4 files changed
+22
-30
No files matched your search
@@ -89,16 +89,12 @@ export const Card = ({
|
||||
opacity: item.UserData?.Played ? 1 : 0,
|
||||
}}
|
||||
>
|
||||
<div className="material-symbols-rounded">
|
||||
done
|
||||
</div>
|
||||
<div className="material-symbols-rounded">done</div>
|
||||
</div>
|
||||
<div
|
||||
className={"card-indicator text"}
|
||||
style={{
|
||||
opacity: item.UserData?.UnplayedItemCount
|
||||
? 1
|
||||
: 0,
|
||||
opacity: item.UserData?.UnplayedItemCount ? 1 : 0,
|
||||
}}
|
||||
>
|
||||
<Typography
|
||||
@@ -121,9 +117,7 @@ export const Card = ({
|
||||
/>
|
||||
)} */}
|
||||
<div className="card-image-icon-container">
|
||||
{overrideIcon
|
||||
? getTypeIcon(overrideIcon)
|
||||
: getTypeIcon(item.Type)}
|
||||
{overrideIcon ? getTypeIcon(overrideIcon) : getTypeIcon(item.Type)}
|
||||
</div>
|
||||
<img
|
||||
alt={item.Name}
|
||||
@@ -131,15 +125,13 @@ export const Card = ({
|
||||
overrideIcon === "User"
|
||||
? `${api.basePath}/Users/${item.Id}/Images/Primary`
|
||||
: api.getItemImageUrl(
|
||||
seriesId
|
||||
? item.SeriesId
|
||||
: item.AlbumId ?? item.Id,
|
||||
seriesId ? item.SeriesId : item.AlbumId ?? item.Id,
|
||||
imageType,
|
||||
{
|
||||
quality: 80,
|
||||
quality: 90,
|
||||
fillWidth: cardType === "thumb" ? 560 : 280,
|
||||
},
|
||||
)
|
||||
)
|
||||
}
|
||||
style={{
|
||||
height: "100%",
|
||||
@@ -169,16 +161,12 @@ export const Card = ({
|
||||
}}
|
||||
iconOnly
|
||||
audio={
|
||||
item.Type ===
|
||||
BaseItemKind.MusicAlbum ||
|
||||
item.Type === BaseItemKind.MusicAlbum ||
|
||||
item.Type === BaseItemKind.Audio ||
|
||||
item.Type ===
|
||||
BaseItemKind.AudioBook ||
|
||||
item.Type === BaseItemKind.Playlist
|
||||
}
|
||||
playlistItem={
|
||||
item.Type === BaseItemKind.AudioBook ||
|
||||
item.Type === BaseItemKind.Playlist
|
||||
}
|
||||
playlistItem={item.Type === BaseItemKind.Playlist}
|
||||
playlistItemId={item.Id}
|
||||
/>
|
||||
<LikeButton
|
||||
@@ -231,12 +219,7 @@ export const Card = ({
|
||||
className="card-text-container"
|
||||
style={{ display: hideText ? "none" : "block" }}
|
||||
>
|
||||
<Typography
|
||||
mt={1}
|
||||
variant="subtitle2"
|
||||
noWrap
|
||||
style={{ opacity: 0.9 }}
|
||||
>
|
||||
<Typography mt={1} variant="subtitle2" noWrap style={{ opacity: 0.9 }}>
|
||||
{cardTitle}
|
||||
</Typography>
|
||||
<Typography
|
||||
|
||||
@@ -5,6 +5,7 @@ import anidbIcon from "../../assets/icons/anidb.png";
|
||||
import anilistIcon from "../../assets/icons/anilist.svg";
|
||||
import audioDBIcon from "../../assets/icons/audioDB.png";
|
||||
import imdbIcon from "../../assets/icons/imdb.svg";
|
||||
import kitsuIcon from "../../assets/icons/kitsu.svg";
|
||||
import musicBrainzIcon from "../../assets/icons/musicbrainz.svg";
|
||||
import tvDbIcon from "../../assets/icons/the-tvdb.svg";
|
||||
import tmdbIcon from "../../assets/icons/themoviedatabase.svg";
|
||||
@@ -21,6 +22,7 @@ const knownIcons = [
|
||||
"anilist",
|
||||
"tvmaze",
|
||||
"theaudiodb",
|
||||
"kitsu",
|
||||
];
|
||||
|
||||
const IconLink = ({ name, url }: { name: string; url: string }) => {
|
||||
@@ -51,6 +53,9 @@ const IconLink = ({ name, url }: { name: string; url: string }) => {
|
||||
{name.toLocaleLowerCase() === "theaudiodb" && (
|
||||
<img src={audioDBIcon} alt="TheAudioDB" />
|
||||
)}
|
||||
{name.toLocaleLowerCase() === "kitsu" && (
|
||||
<img src={kitsuIcon} alt="Kitsu" />
|
||||
)}
|
||||
{!knownIcons.includes(name.toLocaleLowerCase()) && (
|
||||
<Typography>{name}</Typography>
|
||||
)}
|
||||
|
||||
Reference in new issue
Block a user