extend resolutions (#1036)

* extend resolutions
 - Simplifies logic
 - Adds more options including 540p, 1440p, and resolutions common to VR such as 1920p
 - Supports vertical/portrait videos and images
* implement new resolution filters
This commit is contained in:
SpedNSFW
2021-01-07 16:10:59 +11:00
committed by GitHub
parent 1882b44951
commit 03a9d65cfe
11 changed files with 220 additions and 29 deletions

View File

@@ -102,10 +102,13 @@ export const SceneCard: React.FC<ISceneCardProps> = (
function maybeRenderSceneSpecsOverlay() {
return (
<div className="scene-specs-overlay">
{props.scene.file.height ? (
{props.scene.file.width && props.scene.file.height ? (
<span className="overlay-resolution">
{" "}
{TextUtils.resolution(props.scene.file.height)}
{TextUtils.resolution(
props.scene.file.width,
props.scene.file.height
)}
</span>
) : (
""