New: Show number of files as tooltip over size on disk

Closes #4203
This commit is contained in:
Robin Dadswell 2021-02-07 03:15:31 +00:00 committed by GitHub
parent 5b98a17873
commit a1ddcf2b7b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 33 additions and 15 deletions

View File

@ -14,6 +14,7 @@
&.inverse { &.inverse {
background-color: $themeDarkColor; background-color: $themeDarkColor;
box-shadow: 0 5px 10px $popoverShadowInverseColor; box-shadow: 0 5px 10px $popoverShadowInverseColor;
color: $white;
} }
} }

View File

@ -119,6 +119,13 @@
margin: 5px 10px 5px 0; margin: 5px 10px 5px 0;
} }
.fileCountMessage {
padding: 5px;
white-space: nowrap;
font-weight: 300;
font-size: 15px;
}
.path, .path,
.sizeOnDisk, .sizeOnDisk,
.qualityProfileName, .qualityProfileName,

View File

@ -432,9 +432,10 @@ class SeriesDetails extends Component {
</span> </span>
</Label> </Label>
<Tooltip
anchor={
<Label <Label
className={styles.detailsLabel} className={styles.detailsLabel}
title={episodeFilesCountMessage}
size={sizes.LARGE} size={sizes.LARGE}
> >
<Icon <Icon
@ -448,6 +449,15 @@ class SeriesDetails extends Component {
} }
</span> </span>
</Label> </Label>
}
tooltip={
<span>
{episodeFilesCountMessage}
</span>
}
kind={kinds.INVERSE}
position={tooltipPositions.BOTTOM}
/>
<Label <Label
className={styles.detailsLabel} className={styles.detailsLabel}