Minor fix for width check

This commit is contained in:
WardPearce
2024-10-13 21:44:38 +13:00
parent 34d85f3423
commit fa231b9ed4
6 changed files with 27 additions and 19 deletions
+2 -2
View File
@@ -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 -1
View File
@@ -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 -1
View File
@@ -1,6 +1,6 @@
{
"name": "materialious",
"version": "1.6.8",
"version": "1.6.9",
"private": true,
"scripts": {
"dev": "vite dev",
+11 -7
View File
@@ -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>
+11 -7
View File
@@ -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
View File
@@ -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")