mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-19 13:36:09 +05:00
use categories as card title heading
This commit is contained in:
@@ -122,8 +122,7 @@ const Torrent = ({ torrent }) => {
|
|||||||
<TorrentCardDescription>
|
<TorrentCardDescription>
|
||||||
<div className='description-title-wrapper'>
|
<div className='description-title-wrapper'>
|
||||||
<div className='description-section-name'>
|
<div className='description-section-name'>
|
||||||
{t('Name')}
|
{category ? (catIndex >= 0 ? t(catArray.name) : category) : t('Name')}
|
||||||
<div className='description-category-wrapper'>{catIndex >= 0 ? t(catArray.name) : category}</div>
|
|
||||||
</div>
|
</div>
|
||||||
<div className='description-torrent-title'>{parsedTitle}</div>
|
<div className='description-torrent-title'>{parsedTitle}</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -94,7 +94,6 @@ export const TorrentCardButtons = styled.div`
|
|||||||
export const TorrentCardDescription = styled.div`
|
export const TorrentCardDescription = styled.div`
|
||||||
${({
|
${({
|
||||||
theme: {
|
theme: {
|
||||||
app: { sidebarBGColor },
|
|
||||||
torrentCard: { cardSecondaryColor, accentCardColor },
|
torrentCard: { cardSecondaryColor, accentCardColor },
|
||||||
},
|
},
|
||||||
}) => css`
|
}) => css`
|
||||||
@@ -116,17 +115,17 @@ export const TorrentCardDescription = styled.div`
|
|||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
}
|
}
|
||||||
|
|
||||||
.description-title-wrapper > .description-section-name {
|
// .description-title-wrapper > .description-section-name {
|
||||||
display: flex;
|
// display: flex;
|
||||||
flex-wrap: nowrap;
|
// flex-wrap: nowrap;
|
||||||
justify-content: space-between;
|
// justify-content: space-between;
|
||||||
self-align: end;
|
// self-align: end;
|
||||||
}
|
// }
|
||||||
|
|
||||||
.description-category-wrapper {
|
// .description-category-wrapper {
|
||||||
display: inline-flex;
|
// display: inline-flex;
|
||||||
color: ${sidebarBGColor};
|
// color: #1a1a1a;
|
||||||
}
|
// }
|
||||||
|
|
||||||
.description-section-name {
|
.description-section-name {
|
||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
|
|||||||
Reference in New Issue
Block a user