Merge pull request #300 from KalerKaler/fix/fixed-lcd-pixels-visualizer-and-visualizer-switching

fix(visualizer): correct LED layout and visualizer switching
This commit is contained in:
edideaur 2026-03-11 14:42:48 +02:00 committed by GitHub
commit d8fdaac508
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 6 additions and 2 deletions

View file

@ -2274,6 +2274,9 @@ export function initializeSettings(scrobbler, player, api, ui) {
ui.visualizer.setPreset(val); ui.visualizer.setPreset(val);
} }
updateButterchurnSettingsVisibility(); updateButterchurnSettingsVisibility();
//Since changing the preset breaks the visualizer, a location.reload() is added to make sure that it works
window.location.reload()
}); });
} }

View file

@ -269,7 +269,8 @@ export class LCDPreset {
this.initWebGL(width, height); this.initWebGL(width, height);
// Attach WebGL canvas to same parent as main canvas // Attach WebGL canvas to same parent as main canvas
if (this.glCanvas && canvas.parentElement) { if (this.glCanvas && canvas.parentElement) {
canvas.parentElement.style.position = 'relative'; //This position:relative was causing the visual bugs and problems in the lcd visualiser.
// canvas.parentElement.style.position = 'relative';
canvas.parentElement.appendChild(this.glCanvas); canvas.parentElement.appendChild(this.glCanvas);
} }
} }

View file

@ -7590,7 +7590,7 @@ body:has(#side-panel.active) #close-fullscreen-cover-btn {
/* EQ Response Curve Canvas */ /* EQ Response Curve Canvas */
.eq-response-canvas { .eq-response-canvas {
position: absolute; position: fixed;
top: var(--spacing-md); top: var(--spacing-md);
left: 4px; left: 4px;
width: calc(100% - 8px); width: calc(100% - 8px);