From c6a6f1cfb9e327e3fb32fd32545bb454ada4d1ef Mon Sep 17 00:00:00 2001 From: DiTus Date: Wed, 25 Feb 2026 23:21:26 +0100 Subject: [PATCH] Fix line width slider to respect user settings Changed line width priority from plot.width (metadata default) to indicator.params._lineWidth (user setting). Now when user changes line width via slider, the chart properly updates to use the user's specified width instead of the hardcoded plot.width=1 from metadata. Also added immediate visual feedback to slider with nextElementSibling.textContent update. --- src/api/dashboard/static/js/ui/indicators-panel-new.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/api/dashboard/static/js/ui/indicators-panel-new.js b/src/api/dashboard/static/js/ui/indicators-panel-new.js index 33a85e6..81266c2 100644 --- a/src/api/dashboard/static/js/ui/indicators-panel-new.js +++ b/src/api/dashboard/static/js/ui/indicators-panel-new.js @@ -290,7 +290,7 @@ return `
- + ${indicator.params._lineWidth || 2}
@@ -695,7 +695,7 @@ function renderIndicatorOnPane(indicator, meta, instance, candles, paneIndex, li topFillColor2: '#00000000', bottomFillColor1: '#00000000', bottomColor: plot.bottomColor || '#00000000', - lineWidth: plot.width !== undefined ? plot.width : lineWidth, + lineWidth: indicator.params._lineWidth || plot.width || lineWidth, lineStyle: plotLineStyle, title: plot.title || '', priceLineVisible: false, @@ -704,7 +704,7 @@ function renderIndicatorOnPane(indicator, meta, instance, candles, paneIndex, li } else { series = window.dashboard.chart.addSeries(LightweightCharts.LineSeries, { color: plotColor, - lineWidth: plot.width !== undefined ? plot.width : lineWidth, + lineWidth: indicator.params._lineWidth || plot.width || lineWidth, lineStyle: plotLineStyle, title: plot.title || '', priceLineVisible: false,