Add Overlay-duration to span (#5177)

Adding overlay-duration so it has it's own dedicated class. Helps with theming/customization

closes https://github.com/stashapp/stash/issues/4240
This commit is contained in:
Gykes 2024-08-27 16:40:58 -07:00 committed by GitHub
parent cdea9374d8
commit c69d72b243
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -373,9 +373,13 @@ const SceneCardImage = PatchComponent(
) : ( ) : (
"" ""
)} )}
{(file?.duration ?? 0) >= 1 {(file?.duration ?? 0) >= 1 ? (
? TextUtils.secondsToTimestamp(file?.duration ?? 0) <span className="overlay-duration">
: ""} {TextUtils.secondsToTimestamp(file?.duration ?? 0)}
</span>
) : (
""
)}
</div> </div>
); );
} }