mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-19 13:36:09 +05:00
other status placement
This commit is contained in:
@@ -113,10 +113,8 @@ const Torrent = ({ torrent }) => {
|
||||
</div>
|
||||
|
||||
<div className='description-statistics-wrapper'>
|
||||
<StatusIndicator stat={stat} />
|
||||
|
||||
<div className='description-statistics-element-wrapper'>
|
||||
<div className='description-section-name'>{t('Size')}</div>
|
||||
<div className='description-section-name'><StatusIndicator stat={stat} />{t('Size')}</div>
|
||||
<div className='description-statistics-element-value'>{torrentSize > 0 && humanizeSize(torrentSize)}</div>
|
||||
</div>
|
||||
|
||||
@@ -195,9 +193,9 @@ export const StatusIndicator = ({ stat }) => {
|
||||
}
|
||||
|
||||
return (
|
||||
<div className='description-statistics-element-wrapper'>
|
||||
<span className='description-status-wrapper'>
|
||||
<StatusIndicators color={colors[stat]} title={values[stat]} />
|
||||
</div>
|
||||
</span>
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
@@ -127,6 +127,14 @@ export const TorrentCardDescription = styled.div`
|
||||
}
|
||||
}
|
||||
|
||||
.description-status-wrapper {
|
||||
display: inline-block;
|
||||
height: 8px;
|
||||
margin-inline-end: 4px;
|
||||
margin-bottom: 4px;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.description-torrent-title {
|
||||
overflow: auto;
|
||||
word-break: break-all;
|
||||
@@ -134,20 +142,20 @@ export const TorrentCardDescription = styled.div`
|
||||
|
||||
.description-statistics-wrapper {
|
||||
display: grid;
|
||||
grid-template-columns: 24px 80px 80px 1fr;
|
||||
grid-template-columns: 80px 80px 1fr;
|
||||
align-self: end;
|
||||
|
||||
@media (max-width: 1260px), (max-height: 500px) {
|
||||
grid-template-columns: 24px 70px 70px 1fr;
|
||||
grid-template-columns: 70px 70px 1fr;
|
||||
}
|
||||
|
||||
@media (max-width: 770px) {
|
||||
grid-template-columns: 24px 65px 65px 1fr;
|
||||
grid-template-columns: 65px 65px 1fr;
|
||||
}
|
||||
|
||||
@media (max-width: 700px) {
|
||||
display: grid;
|
||||
grid-template-columns: 24px repeat(3, 1fr);
|
||||
grid-template-columns: repeat(3, 1fr);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -155,7 +163,7 @@ export const TorrentCardDescription = styled.div`
|
||||
}
|
||||
|
||||
.description-statistics-element-value {
|
||||
margin-left: 0px;
|
||||
margin-left: 5px;
|
||||
margin-bottom: 10px;
|
||||
word-break: break-all;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user