diff --git a/server/src/wled_controller/static/css/modal.css b/server/src/wled_controller/static/css/modal.css index 096878d..0b238ce 100644 --- a/server/src/wled_controller/static/css/modal.css +++ b/server/src/wled_controller/static/css/modal.css @@ -24,6 +24,9 @@ border-radius: 12px; max-width: 500px; width: 90%; + max-height: calc(100vh - 40px); + display: flex; + flex-direction: column; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5); animation: slideUp 0.3s ease-out; } @@ -113,6 +116,10 @@ .modal-body { padding: 24px; + overflow-y: auto; + scrollbar-gutter: stable; + flex: 1 1 auto; + min-height: 0; } .modal-description { diff --git a/server/src/wled_controller/static/js/features/targets.js b/server/src/wled_controller/static/js/features/targets.js index 7f59ad2..d8fe479 100644 --- a/server/src/wled_controller/static/js/features/targets.js +++ b/server/src/wled_controller/static/js/features/targets.js @@ -514,7 +514,7 @@ export function createTargetCard(target, deviceMap, colorStripSourceMap) { - ${state.overlay_active ? ` + ${(!css || css.source_type === 'picture') ? (state.overlay_active ? ` @@ -522,7 +522,7 @@ export function createTargetCard(target, deviceMap, colorStripSourceMap) { - `} + `) : ''} `;