Merge branch 'pr-263'

This commit is contained in:
nikk gitanes
2023-05-27 18:07:04 +03:00
2 changed files with 11 additions and 3 deletions

View File

@@ -116,7 +116,7 @@ const Torrent = ({ torrent }) => {
<StatusIndicator stat={stat} /> <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 +195,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;