diff --git a/Pipfile b/Pipfile index c96e3eb..4c5662c 100644 --- a/Pipfile +++ b/Pipfile @@ -21,4 +21,4 @@ python_version = "3.12" [scripts] web = "python /home/pi/led-controller/tests/web.py" watch = "python -m watchfiles 'python tests/web.py' src tests" -install = "pipenv install" +install = "pipenv install" \ No newline at end of file diff --git a/run_web.py b/run_web.py index 8bbc975..d51e533 100644 --- a/run_web.py +++ b/run_web.py @@ -128,6 +128,11 @@ async def run_local(): """Serve the settings page.""" return send_file('src/templates/settings.html') + # Favicon: avoid 404 in browser console (no file needed) + @app.route('/favicon.ico') + def favicon(request): + return '', 204 + # Static file route @app.route("/static/") def static_handler(request, path): diff --git a/src/static/style.css b/src/static/style.css index ae8d541..126cba2 100644 --- a/src/static/style.css +++ b/src/static/style.css @@ -794,9 +794,7 @@ header h1 { flex-direction: row; align-items: center; gap: 0.25rem; - } - - header h1 { + } header h1 { font-size: 1.1rem; } /* On mobile, hide header buttons; all actions (including Tabs) are in the Menu dropdown */ .header-actions { @@ -1047,9 +1045,7 @@ header h1 { max-width: 900px; max-height: 90vh; overflow-y: auto; -} - -#settings-modal .modal-content > p.muted-text { +}#settings-modal .modal-content > p.muted-text { margin-bottom: 1rem; }#settings-modal .settings-section.ap-settings-section { margin-top: 1.5rem;