Remove unnecessary class name variable
This commit is contained in:
parent
680b6c9f33
commit
4356619459
1 changed files with 2 additions and 3 deletions
|
@ -1,6 +1,7 @@
|
||||||
import type { BaseItemDto } from '@jellyfin/sdk/lib/generated-client/models/base-item-dto';
|
import type { BaseItemDto } from '@jellyfin/sdk/lib/generated-client/models/base-item-dto';
|
||||||
import { BaseItemKind } from '@jellyfin/sdk/lib/generated-client/models/base-item-kind';
|
import { BaseItemKind } from '@jellyfin/sdk/lib/generated-client/models/base-item-kind';
|
||||||
import type { ApiClient } from 'jellyfin-apiclient';
|
import type { ApiClient } from 'jellyfin-apiclient';
|
||||||
|
|
||||||
import type { CardOptions } from 'types/cardOptions';
|
import type { CardOptions } from 'types/cardOptions';
|
||||||
import { CardShape } from 'utils/card';
|
import { CardShape } from 'utils/card';
|
||||||
|
|
||||||
|
@ -36,8 +37,6 @@ export function buildCardImage(
|
||||||
|
|
||||||
if (!image) return '';
|
if (!image) return '';
|
||||||
|
|
||||||
const className = ` ${shape}Card`;
|
|
||||||
|
|
||||||
const { blurhash, imgUrl } = image;
|
const { blurhash, imgUrl } = image;
|
||||||
|
|
||||||
let cardPadderIcon = '';
|
let cardPadderIcon = '';
|
||||||
|
@ -56,7 +55,7 @@ export function buildCardImage(
|
||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
`<div class="card ${className}">
|
`<div class="card ${shape}Card">
|
||||||
<div class="cardBox">
|
<div class="cardBox">
|
||||||
<div class="cardScalable">
|
<div class="cardScalable">
|
||||||
<div class="cardPadder cardPadder-${shape}">
|
<div class="cardPadder cardPadder-${shape}">
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue