other status placement

This commit is contained in:
nikk gitanes
2023-05-27 18:05:23 +03:00
parent 2f61c75f68
commit 49599f9d9a
2 changed files with 16 additions and 10 deletions

View File

@@ -113,10 +113,8 @@ const Torrent = ({ torrent }) => {
</div> </div>
<div className='description-statistics-wrapper'> <div className='description-statistics-wrapper'>
<StatusIndicator stat={stat} />
<div className='description-statistics-element-wrapper'> <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 className='description-statistics-element-value'>{torrentSize > 0 && humanizeSize(torrentSize)}</div>
</div> </div>
@@ -195,9 +193,9 @@ export const StatusIndicator = ({ stat }) => {
} }
return ( return (
<div className='description-statistics-element-wrapper'> <span className='description-status-wrapper'>
<StatusIndicators color={colors[stat]} title={values[stat]} /> <StatusIndicators color={colors[stat]} title={values[stat]} />
</div> </span>
) )
} }

View File

@@ -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 { .description-torrent-title {
overflow: auto; overflow: auto;
word-break: break-all; word-break: break-all;
@@ -134,20 +142,20 @@ export const TorrentCardDescription = styled.div`
.description-statistics-wrapper { .description-statistics-wrapper {
display: grid; display: grid;
grid-template-columns: 24px 80px 80px 1fr; grid-template-columns: 80px 80px 1fr;
align-self: end; align-self: end;
@media (max-width: 1260px), (max-height: 500px) { @media (max-width: 1260px), (max-height: 500px) {
grid-template-columns: 24px 70px 70px 1fr; grid-template-columns: 70px 70px 1fr;
} }
@media (max-width: 770px) { @media (max-width: 770px) {
grid-template-columns: 24px 65px 65px 1fr; grid-template-columns: 65px 65px 1fr;
} }
@media (max-width: 700px) { @media (max-width: 700px) {
display: grid; 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 { .description-statistics-element-value {
margin-left: 0px; margin-left: 5px;
margin-bottom: 10px; margin-bottom: 10px;
word-break: break-all; word-break: break-all;