Fix bottom nav full-width layout + add backend URL autofill

- Remove max-width/gap/padding from bottom nav so buttons fill full screen width
- Add NS_BACKEND_URL to config.js entrypoint and autofill backend-url field on setup screen

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
HoneyandClaude Sonnet 4.6 committed 2026-04-25 17:03:34 +02:00
1 parent b6edfcf14b
commit a5461ff92c
6 files changed
+17 -17

No files matched your search

+3 -5
View File
@@ -110,11 +110,9 @@ function disconnect(){
window.addEventListener('load',()=>{
const saved=localStorage.getItem('ns_cfg');
if(saved){cfg=JSON.parse(saved);startApp()}
// Autofill server URL from Docker env (set via config.js)
if(window.NS_SERVER_URL){
const el=document.getElementById('srv-url');
if(el&&!el.value)el.value=window.NS_SERVER_URL;
}
// Autofill URLs from Docker env (set via config.js)
if(window.NS_SERVER_URL){const el=document.getElementById('srv-url');if(el&&!el.value)el.value=window.NS_SERVER_URL;}
if(window.NS_BACKEND_URL){const el=document.getElementById('backend-url');if(el&&!el.value)el.value=window.NS_BACKEND_URL;}
document.getElementById('srv-pass').addEventListener('keydown',e=>{if(e.key==='Enter')doConnect()});
audio.addEventListener('timeupdate',updateProgress);
audio.addEventListener('ended',onEnded);