Minor fix for width check
This commit is contained in:
@@ -7,8 +7,8 @@ android {
|
||||
applicationId "us.materialio.app"
|
||||
minSdkVersion rootProject.ext.minSdkVersion
|
||||
targetSdkVersion rootProject.ext.targetSdkVersion
|
||||
versionCode 59
|
||||
versionName "1.6.8"
|
||||
versionCode 60
|
||||
versionName "1.6.9"
|
||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||
aaptOptions {
|
||||
// Files and dirs to omit from the packaged assets dir, modified to accommodate modern web apps.
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "Materialious",
|
||||
"version": "1.6.8",
|
||||
"version": "1.6.9",
|
||||
"description": "Modern material design for Invidious.",
|
||||
"author": {
|
||||
"name": "Ward Pearce",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "materialious",
|
||||
"version": "1.6.8",
|
||||
"version": "1.6.9",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"dev": "vite dev",
|
||||
|
||||
@@ -108,14 +108,18 @@
|
||||
|
||||
let dialogType = '';
|
||||
|
||||
function checkWidth() {
|
||||
if (innerWidth <= 1320) {
|
||||
dialogType = 'right';
|
||||
} else {
|
||||
dialogType = '';
|
||||
}
|
||||
}
|
||||
|
||||
onMount(() => {
|
||||
addEventListener('resize', () => {
|
||||
if (innerWidth <= 1320) {
|
||||
dialogType = 'right';
|
||||
} else {
|
||||
dialogType = '';
|
||||
}
|
||||
});
|
||||
checkWidth();
|
||||
|
||||
addEventListener('resize', () => checkWidth());
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
@@ -21,14 +21,18 @@
|
||||
hiddenVideos = [...hiddenVideos, videoId];
|
||||
}
|
||||
|
||||
function checkWidth() {
|
||||
if (innerWidth <= 1750) {
|
||||
largeCol = '4';
|
||||
} else {
|
||||
largeCol = '2';
|
||||
}
|
||||
}
|
||||
|
||||
onMount(() => {
|
||||
addEventListener('resize', () => {
|
||||
if (innerWidth <= 1750) {
|
||||
largeCol = '4';
|
||||
} else {
|
||||
largeCol = '2';
|
||||
}
|
||||
});
|
||||
checkWidth();
|
||||
|
||||
addEventListener('resize', () => checkWidth());
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
+1
-1
@@ -5,7 +5,7 @@ import json
|
||||
import os
|
||||
import re
|
||||
|
||||
LATEST_VERSION = "1.6.8"
|
||||
LATEST_VERSION = "1.6.9"
|
||||
WORKING_DIR = os.path.join(os.path.dirname(os.path.realpath(__file__)), "materialious")
|
||||
|
||||
ROOT_PACKAGE = os.path.join(WORKING_DIR, "package.json")
|
||||
|
||||
Reference in New Issue
Block a user