Enhance configuration layout for season name input and update select appearance
All checks were successful
Auto Release Plugin / build-and-release (push) Successful in 51s

This commit is contained in:
CodeDevMLH
2026-02-13 02:18:18 +01:00
parent 81a0d375be
commit 21d55711d4

View File

@@ -564,7 +564,7 @@
]; ];
function mkSelect(val, opts, cls) { function mkSelect(val, opts, cls) {
var h = '<select class="emby-select emby-select-withcolor ' + cls + '" style="width: auto; display: inline-block; margin-right: 5px;">'; var h = '<select class="emby-select emby-select-withcolor ' + cls + '" style="width: auto; display: inline-block; margin-right: 5px; -webkit-appearance: menulist; appearance: menulist;">';
opts.forEach(function(o) { opts.forEach(function(o) {
var v = o.v || o; var v = o.v || o;
var n = o.n || o; var n = o.n || o;
@@ -574,12 +574,15 @@
return h; return h;
} }
div.innerHTML = '<div style="display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 0.5em;">' + div.innerHTML = '<div style="margin-bottom: 0.5em;">' +
' <div style="flex-grow:1; margin-right:1em;">' + ' <label class="inputLabel" style="margin-bottom:0.5em; display:block;">Season Name</label>' +
' <input is="emby-input" type="text" class="emby-input section-name" value="' + (data.Name || '') + '" label="Season Name" />' + ' <div style="display: flex; align-items: center;">' +
' <div class="fieldDescription">Name of the season (e.g. Christmas).</div>' + ' <div style="flex-grow:1;">' +
' <input is="emby-input" type="text" class="emby-input section-name" value="' + (data.Name || '') + '" />' +
' </div>' +
' <button type="button" class="raised emby-button remove-section" style="background: #a94442; min-width: unset; margin-left: 1em;">Remove</button>' +
' </div>' + ' </div>' +
' <button type="button" class="raised emby-button remove-section" style="background: #a94442; min-width: unset; margin-top: 0.5em;">Remove</button>' + ' <div class="fieldDescription">Name of the season (e.g. Christmas).</div>' +
'</div>' + '</div>' +
'<div style="margin-bottom: 1em;">' + '<div style="margin-bottom: 1em;">' +
' <label class="inputLabel" style="margin-bottom:0.5em; display:block;">Active Period</label>' + ' <label class="inputLabel" style="margin-bottom:0.5em; display:block;">Active Period</label>' +