From 481ae0209a65d7cfc0b592738495ba2322b4e1d4 Mon Sep 17 00:00:00 2001 From: ScreenTinker Date: Tue, 21 Apr 2026 18:48:51 -0500 Subject: [PATCH] Mobile: fix modal and form control overflow MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Inline width:NNNpx beats the .modal { width: 95vw } mobile rule due to specificity. Convert to max-width:NNNpx;width:95vw on the three affected modals so they cap at their desktop size but still shrink on mobile: - playlists.js add-item modal (560px) - device-detail.js assign-playlist modal (650px) - content-library.js edit-content modal (500px) Same fix pattern for fixed-width form controls flagged in QA — selects and inputs change to max-width:NNNpx;width:100% so they keep their desktop size but shrink to container on mobile: - admin.js role/plan selects (120/130px) - teams.js member role + add-device selects (100/200px) - content-library.js search input + folder filter (250/180px) - onboarding.js pairing code + display name inputs (240px) Co-Authored-By: Claude Opus 4.7 --- frontend/js/views/admin.js | 4 ++-- frontend/js/views/content-library.js | 6 +++--- frontend/js/views/device-detail.js | 2 +- frontend/js/views/onboarding.js | 4 ++-- frontend/js/views/playlists.js | 2 +- frontend/js/views/teams.js | 4 ++-- 6 files changed, 11 insertions(+), 11 deletions(-) diff --git a/frontend/js/views/admin.js b/frontend/js/views/admin.js index ef18527..ca04f6e 100644 --- a/frontend/js/views/admin.js +++ b/frontend/js/views/admin.js @@ -65,14 +65,14 @@ async function loadUsers() { ${u.auth_provider} ${u.last_login ? new Date(u.last_login * 1000).toLocaleString() : 'Never'} - - ${plans.map(p => ``).join('')} diff --git a/frontend/js/views/content-library.js b/frontend/js/views/content-library.js index 6d9a2a5..7dfa248 100644 --- a/frontend/js/views/content-library.js +++ b/frontend/js/views/content-library.js @@ -72,8 +72,8 @@ export function render(container) {
- - + @@ -368,7 +368,7 @@ function showEditModal(contentItem, onSave) { const isRemote = !!contentItem.remote_url; overlay.innerHTML = ` -