Wrapped fields on series details page in div

This allows you to triple click to select the path for instance, similar
to the details page in radarr.
This commit is contained in:
jab416171 2024-01-27 12:34:03 -07:00 committed by Mark McDowall
parent 6ab1d8e16b
commit 63e132d257
1 changed files with 69 additions and 55 deletions

View File

@ -428,14 +428,16 @@ class SeriesDetails extends Component {
className={styles.detailsLabel} className={styles.detailsLabel}
size={sizes.LARGE} size={sizes.LARGE}
> >
<Icon
name={icons.FOLDER}
size={17}
/>
<span className={styles.path}> <div>
{path} <Icon
</span> name={icons.FOLDER}
size={17}
/>
<span className={styles.path}>
{path}
</span>
</div>
</Label> </Label>
<Tooltip <Tooltip
@ -444,16 +446,18 @@ class SeriesDetails extends Component {
className={styles.detailsLabel} className={styles.detailsLabel}
size={sizes.LARGE} size={sizes.LARGE}
> >
<Icon
name={icons.DRIVE}
size={17}
/>
<span className={styles.sizeOnDisk}> <div>
{ <Icon
formatBytes(sizeOnDisk || 0) name={icons.DRIVE}
} size={17}
</span> />
<span className={styles.sizeOnDisk}>
{
formatBytes(sizeOnDisk || 0)
}
</span>
</div>
</Label> </Label>
} }
tooltip={ tooltip={
@ -470,32 +474,36 @@ class SeriesDetails extends Component {
title={translate('QualityProfile')} title={translate('QualityProfile')}
size={sizes.LARGE} size={sizes.LARGE}
> >
<Icon
name={icons.PROFILE}
size={17}
/>
<span className={styles.qualityProfileName}> <div>
{ <Icon
<QualityProfileNameConnector name={icons.PROFILE}
qualityProfileId={qualityProfileId} size={17}
/> />
} <span className={styles.qualityProfileName}>
</span> {
<QualityProfileNameConnector
qualityProfileId={qualityProfileId}
/>
}
</span>
</div>
</Label> </Label>
<Label <Label
className={styles.detailsLabel} className={styles.detailsLabel}
size={sizes.LARGE} size={sizes.LARGE}
> >
<Icon
name={monitored ? icons.MONITORED : icons.UNMONITORED}
size={17}
/>
<span className={styles.qualityProfileName}> <div>
{monitored ? translate('Monitored') : translate('Unmonitored')} <Icon
</span> name={monitored ? icons.MONITORED : icons.UNMONITORED}
size={17}
/>
<span className={styles.qualityProfileName}>
{monitored ? translate('Monitored') : translate('Unmonitored')}
</span>
</div>
</Label> </Label>
<Label <Label
@ -503,14 +511,16 @@ class SeriesDetails extends Component {
title={statusDetails.message} title={statusDetails.message}
size={sizes.LARGE} size={sizes.LARGE}
> >
<Icon
name={statusDetails.icon}
size={17}
/>
<span className={styles.qualityProfileName}> <div>
{statusDetails.title} <Icon
</span> name={statusDetails.icon}
size={17}
/>
<span className={styles.qualityProfileName}>
{statusDetails.title}
</span>
</div>
</Label> </Label>
{ {
@ -520,14 +530,16 @@ class SeriesDetails extends Component {
title={translate('Network')} title={translate('Network')}
size={sizes.LARGE} size={sizes.LARGE}
> >
<Icon
name={icons.NETWORK}
size={17}
/>
<span className={styles.qualityProfileName}> <div>
{network} <Icon
</span> name={icons.NETWORK}
size={17}
/>
<span className={styles.qualityProfileName}>
{network}
</span>
</div>
</Label> </Label>
} }
@ -537,14 +549,16 @@ class SeriesDetails extends Component {
className={styles.detailsLabel} className={styles.detailsLabel}
size={sizes.LARGE} size={sizes.LARGE}
> >
<Icon
name={icons.EXTERNAL_LINK}
size={17}
/>
<span className={styles.links}> <div>
{translate('Links')} <Icon
</span> name={icons.EXTERNAL_LINK}
size={17}
/>
<span className={styles.links}>
{translate('Links')}
</span>
</div>
</Label> </Label>
} }
tooltip={ tooltip={