diff --git a/src/common/interfaces/SettingsInterface.ts b/src/common/interfaces/SettingsInterface.ts index 87a4aa3..31936b4 100644 --- a/src/common/interfaces/SettingsInterface.ts +++ b/src/common/interfaces/SettingsInterface.ts @@ -29,6 +29,7 @@ interface RestrictionsSettings { minAllowedWidth?: number; // if player is less than this many px wide, ultrawidify will disable itself minAllowedHeight?: number; // if player is less than this many px tall, ultrawidify will disable itself onlyAllowInFullscreen?: boolean; // if enabled, ultrawidify will be disabled when not in full screen regardless of what previous two options say + onlyAllowAutodetectionInFullScreen?: boolean; // if enabled, autodetection will only start once in full screen } export interface CommandInterface { diff --git a/src/csui/PlayerUiBase.vue b/src/csui/PlayerUiBase.vue index d154e8f..5d580bc 100644 --- a/src/csui/PlayerUiBase.vue +++ b/src/csui/PlayerUiBase.vue @@ -108,6 +108,11 @@ :site="site" > + + + + + diff --git a/src/csui/src/PlayerUiPanels/PanelComponents/ExtensionSettings/SiteExtensionSettings.vue b/src/csui/src/PlayerUiPanels/PanelComponents/ExtensionSettings/SiteExtensionSettings.vue new file mode 100644 index 0000000..98ea403 --- /dev/null +++ b/src/csui/src/PlayerUiPanels/PanelComponents/ExtensionSettings/SiteExtensionSettings.vue @@ -0,0 +1,203 @@ + + + + + + + diff --git a/src/csui/src/PlayerUiPanels/PanelComponents/ExtensionSettings/SiteSettingsBasicTable.vue b/src/csui/src/PlayerUiPanels/PanelComponents/ExtensionSettings/SiteSettingsBasicTable.vue new file mode 100644 index 0000000..d8b92f2 --- /dev/null +++ b/src/csui/src/PlayerUiPanels/PanelComponents/ExtensionSettings/SiteSettingsBasicTable.vue @@ -0,0 +1,40 @@ + + diff --git a/src/csui/src/PlayerUiPanels/PanelComponents/VideoSettings/StretchOptionsPanel.vue b/src/csui/src/PlayerUiPanels/PanelComponents/VideoSettings/StretchOptionsPanel.vue index a1ee3b1..df23058 100644 --- a/src/csui/src/PlayerUiPanels/PanelComponents/VideoSettings/StretchOptionsPanel.vue +++ b/src/csui/src/PlayerUiPanels/PanelComponents/VideoSettings/StretchOptionsPanel.vue @@ -210,14 +210,14 @@ export default { EditShortcutButton, }, computed: { - extensionDefaultCrop() { + extensionDefaultStretch() { return JSON.stringify( - this.settings?.active.crop?.default ?? {type: AspectRatioType.Automatic} + this.settings?.active.stretch?.default ?? {type: StretchMode.NoStretch} ); }, - siteDefaultCrop() { + siteDefaultStretch() { return JSON.stringify( - this.settings?.getDefaultCrop(this.site) ?? {type: AspectRatioType.Automatic} + this.settings?.getDefaultStretch(this.site) ?? {type: StretchMode.NoStretch} ); }, }, diff --git a/src/csui/src/res-common/common.scss b/src/csui/src/res-common/common.scss index 21b07b6..1ee4905 100644 --- a/src/csui/src/res-common/common.scss +++ b/src/csui/src/res-common/common.scss @@ -98,6 +98,7 @@ h1, h2, h3 { font-size: 0.8rem; opacity: 0.7; margin-top: 0.25rem; + width: 100%; } .select { diff --git a/src/popup/App.vue b/src/popup/App.vue index 0139784..9bd5e4f 100644 --- a/src/popup/App.vue +++ b/src/popup/App.vue @@ -27,7 +27,7 @@
side menu
-
+
-
+      
 
     
@@ -304,6 +304,10 @@ html { font-size: 1.27em; } +.scrollable { + height: 100%; + overflow-y: auto; +} .menu-item-inline-desc{ font-size: 0.60em; diff --git a/src/popup/panels/PopupVideoSettings.vue b/src/popup/panels/PopupVideoSettings.vue index ea1d4c0..073cfa1 100644 --- a/src/popup/panels/PopupVideoSettings.vue +++ b/src/popup/panels/PopupVideoSettings.vue @@ -2,10 +2,11 @@
-

Crop video:

+

Crop video:

+ +
+ +

Stretch video:

+
+ + + +
+ +

Zoom:

+
+ + + + +
+ +

Video alignment:

+
+ +
+ + +
+ +