Add max truncate

This commit is contained in:
WardPearce
2024-10-08 16:45:58 +13:00
parent 3154d83b05
commit e1408ae851
5 changed files with 7 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 52
versionName "1.6.1"
versionCode 53
versionName "1.6.2"
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.1",
"version": "1.6.2",
"description": "Modern material design for Invidious.",
"author": {
"name": "Ward Pearce",
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "materialious",
"version": "1.6.1",
"version": "1.6.2",
"private": true,
"scripts": {
"dev": "vite dev",
+2 -1
View File
@@ -10,6 +10,7 @@
letterCase,
proxyGoogleImage,
proxyVideoUrl,
truncate,
videoLength
} from './misc';
import type { PlayerEvents } from './player';
@@ -374,7 +375,7 @@
data-sveltekit-preload-data="off"
href={watchUrl.toString()}
>
<span class="bold">{letterCase(video.title.trimEnd())}</span>
<span class="bold">{letterCase(truncate(video.title.trimEnd(), 80))}</span>
</a>
<div>
+1 -1
View File
@@ -5,7 +5,7 @@ import json
import os
import re
LATEST_VERSION = "1.6.1"
LATEST_VERSION = "1.6.2"
WORKING_DIR = os.path.join(os.path.dirname(os.path.realpath(__file__)), "materialious")
ROOT_PACKAGE = os.path.join(WORKING_DIR, "package.json")