diff --git a/src/Views/Home/Assets.cshtml b/src/Views/Home/Assets.cshtml index 11ef9d9..0b5cf94 100644 --- a/src/Views/Home/Assets.cshtml +++ b/src/Views/Home/Assets.cshtml @@ -5,6 +5,8 @@ @{ ViewData["Title"] = T["Assets"]; } + + @@ -768,5 +770,33 @@ document.addEventListener('DOMContentLoaded', () => { }); + + + \ No newline at end of file diff --git a/src/wwwroot/css/site.css b/src/wwwroot/css/site.css index b50430f..8ed6dde 100644 --- a/src/wwwroot/css/site.css +++ b/src/wwwroot/css/site.css @@ -40,4 +40,27 @@ body { width: 2rem; height: 2rem; float: right; -} \ No newline at end of file +} + +/* Tomselect dark mode theme */ +[data-bs-theme="dark"] .ts-control, +[data-bs-theme="dark"] .ts-dropdown { + color: #f8f9fa !important; + border-color: #444 !important; +} + +[data-bs-theme="dark"] .ts-control input, +[data-bs-theme="dark"] .ts-dropdown .option, +[data-bs-theme="dark"] .ts-dropdown .item { + color: #f8f9fa !important; +} + +[data-bs-theme="dark"] .ts-dropdown .option:hover, +[data-bs-theme="dark"] .ts-dropdown .active { + color: #ffffff !important; +} + +[data-bs-theme="dark"] .ts-control .item { + color: #f8f9fa !important; + border-color: #666 !important; +} diff --git a/src/wwwroot/js/site.js b/src/wwwroot/js/site.js index 15d9a89..1d0fcb1 100644 --- a/src/wwwroot/js/site.js +++ b/src/wwwroot/js/site.js @@ -126,7 +126,7 @@ async function loadLocationsIntoSelect(selectElement, selectedValue = null) { selectElement.innerHTML = ``; locations.forEach(loc => { - const text = `${loc.description.Location}, Room ${loc.description.RoomNumber}, Seat ${loc.description.Seat}`; + const text = `${loc.location}`; const option = document.createElement('option'); option.value = loc.location; option.textContent = text;