fix binislop

This commit is contained in:
edideaur 2026-04-05 18:41:25 +00:00 committed by GitHub
parent f3b9cfd2f0
commit 2830d12bda
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 34 additions and 3 deletions

View file

@ -21,4 +21,5 @@ album:250986538
album:509761344
album:15621057
album:103897783
album:151728406
album:151728406
album:199412873

View file

@ -546,7 +546,7 @@ export class UIRenderer {
) {
let size = '320';
if (this.currentPage === 'search' || className === 'track-item-cover') {
size = '80';
size = type === 'album' ? '1280' : '80';
} else if (type === 'artist') {
size = '160';
}

27
lhci.yml Normal file
View file

@ -0,0 +1,27 @@
target: static
assert:
assertions:
# Performance
- first-contentful-paint:warn < 3000
- interactive:warn < 7000
- lcp-lazy-loaded:off
- speed-index:warn < 5000
# Accessibility (warn if below 85)
- accessibility:warn < 85
# Best Practices
- best-practices:warn < 85
# SEO
- seo:warn < 85
upload:
target: temporary-public-storage
collect:
numberOfRuns: 3
settings:
preset: desktop
# Headless Chrome for CI
chromeFlags: '--no-sandbox --disable-gpu'

View file

@ -17,7 +17,9 @@
"lint:css": "stylelint \"**/*.css\"",
"lint:html": "htmlhint \"**/*.html\" --ignore=\"dist/**,legacy/**,node_modules/**\"",
"lint": "bun run lint:js && bun run lint:css && bun run lint:html",
"format": "prettier --write ."
"format": "prettier --write .",
"lhci": "lhci",
"lhci:autorun": "npm run build && lhci autorun"
},
"repository": {
"type": "git",
@ -33,6 +35,7 @@
"devDependencies": {
"@capacitor/assets": "^3.0.5",
"@capacitor/cli": "^8.2.0",
"@lhci/cli": "^0.14.0",
"@testing-library/dom": "^10.4.1",
"@types/node": "^25.3.5",
"@vitest/browser-playwright": "^4.1.2",