From 761f2c21a88f10695682b5787482d1f15a5e8f61 Mon Sep 17 00:00:00 2001 From: Tamius Han Date: Thu, 25 Nov 2021 22:16:48 +0100 Subject: [PATCH] fixes --- src/ext/lib/video-data/VideoData.ts | 9 ++++----- src/res/css/common.scss | 6 ++++-- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/src/ext/lib/video-data/VideoData.ts b/src/ext/lib/video-data/VideoData.ts index 6b437d0..cb7ff8f 100644 --- a/src/ext/lib/video-data/VideoData.ts +++ b/src/ext/lib/video-data/VideoData.ts @@ -231,7 +231,6 @@ class VideoData { */ preparePage() { this.injectBaseCss(); - this.pageInfo.initMouseActionHandler(this); // aspect ratio autodetection cannot be properly initialized at this time, @@ -364,8 +363,7 @@ class VideoData { if (!options?.fromPlayer) { this.player?.enable(); } - - this.restoreCrop(); + // this.restoreCrop(); } /** @@ -403,6 +401,7 @@ class VideoData { this.logger.log('info', 'debug', '[VideoData::restoreCrop] Attempting to reset aspect ratio.') // if we have default crop set for this page, apply this. // otherwise, reset crop + if (this.pageInfo.defaultCrop) { this.resizer.setAr(this.pageInfo.defaultCrop); } else { @@ -554,8 +553,8 @@ class VideoData { && this.isWithin(vh, (ph - (translateY * 2)), 2) && this.isWithin(vw, (pw - (translateX * 2)), 2)) { } else { - this.player.forceRefreshPlayerElement(); - this.restoreAr(); + // this.player.forceRefreshPlayerElement(); + // this.restoreAr(); } } catch(e) { diff --git a/src/res/css/common.scss b/src/res/css/common.scss index 97da471..52d82c2 100644 --- a/src/res/css/common.scss +++ b/src/res/css/common.scss @@ -1,6 +1,8 @@ @import "colors.scss"; @import "fonts.scss"; @import "flex.scss"; +// @import "~/@mdi/font/css/materialdesignicons.css"; + // @import "form.scss"; body { @@ -239,7 +241,7 @@ body { user-select: none;; } - + .selected, .setting-selected { color: $selected-color !important; background-color: $background-selected !important; @@ -266,7 +268,7 @@ body { .disabled-button { color: #666 !important; - cursor: not-allowed !important; + cursor: not-allowed !important; } .disabled-button:hover {