From c412afe10fda4b3a8a918621c7f3bbaf6db8f1f2 Mon Sep 17 00:00:00 2001 From: mehekj Date: Wed, 8 Jun 2022 09:17:31 -0400 Subject: better controls breakpoints --- src/client/views/nodes/VideoBox.tsx | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'src') diff --git a/src/client/views/nodes/VideoBox.tsx b/src/client/views/nodes/VideoBox.tsx index 61afda70f..236c0d5fd 100644 --- a/src/client/views/nodes/VideoBox.tsx +++ b/src/client/views/nodes/VideoBox.tsx @@ -763,13 +763,13 @@ export class VideoBox extends ViewBoxAnnotatableComponent 0.5 ? right + 10 : left + 10; - return this._fullScreen || width < 50 ? null :
+ const xPos = uiHeight / vidHeight > 0.4 ? right + 10 : left + 10; + return this._fullScreen || (right - left) < 50 ? null :
{this.UIButtons}
@@ -787,7 +787,7 @@ export class VideoBox extends ViewBoxAnnotatableComponent
- {this.timeline && width > 160 &&
+ {this.timeline && width > 150 &&
{formatTime(curTime)}
@@ -809,14 +809,14 @@ export class VideoBox extends ViewBoxAnnotatableComponent } - {width > 100 &&
-
} +
{ - !this._fullScreen && width > 250 &&
300 &&
@@ -824,18 +824,18 @@ export class VideoBox extends ViewBoxAnnotatableComponent 250 &&
300 &&
} - {width > 70 &&
{ e.stopPropagation(); this.toggleMute(); }}> -
} +
{ width > 300 &&