Merge pull request #373 from Materialious/fix/sideways-onmount

Fix sideways thumbnails without resize
This commit is contained in:
Ward
2024-06-28 22:41:46 +12:00
committed by GitHub
4 changed files with 9 additions and 6 deletions
+2 -2
View File
@@ -7,8 +7,8 @@ android {
applicationId "us.materialio.app"
minSdkVersion rootProject.ext.minSdkVersion
targetSdkVersion rootProject.ext.targetSdkVersion
versionCode 14
versionName "1.1.2"
versionCode 15
versionName "1.1.3"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
aaptOptions {
// Files and dirs to omit from the packaged assets dir, modified to accommodate modern web apps.
+2 -2
View File
@@ -1,6 +1,6 @@
{
"name": "Materialious",
"version": "1.1.2",
"version": "1.1.3",
"description": "Modern material design for Invidious.",
"author": {
"name": "Ward Pearce",
@@ -39,4 +39,4 @@
"capacitor",
"electron"
]
}
}
+2 -2
View File
@@ -1,6 +1,6 @@
{
"name": "materialious",
"version": "1.1.2",
"version": "1.1.3",
"private": true,
"scripts": {
"dev": "vite dev",
@@ -60,4 +60,4 @@
"svelte-persisted-store": "^0.11.0",
"vidstack": "^1.11.21"
}
}
}
+3
View File
@@ -87,6 +87,9 @@
return;
}
// Check if sideways should be enabled or disabled.
disableSideways();
addEventListener('resize', disableSideways);
let imageSrc = getBestThumbnail(video.videoThumbnails) as string;