diff --git a/server/src/wled_controller/static/app.js b/server/src/wled_controller/static/app.js index 31b60fa..3cbbe88 100644 --- a/server/src/wled_controller/static/app.js +++ b/server/src/wled_controller/static/app.js @@ -410,15 +410,15 @@ document.addEventListener('DOMContentLoaded', async () => { // Initialize locale first await initLocale(); - // Show content now that translations are loaded - document.body.style.visibility = 'visible'; - // Load API key from localStorage apiKey = localStorage.getItem('wled_api_key'); - // Restore active tab (after API key is loaded) + // Restore active tab before showing content to avoid visible jump initTabs(); + // Show content now that translations are loaded and tabs are set + document.body.style.visibility = 'visible'; + // Setup form handler document.getElementById('add-device-form').addEventListener('submit', handleAddDevice); diff --git a/server/src/wled_controller/static/index.html b/server/src/wled_controller/static/index.html index 023f61f..5797497 100644 --- a/server/src/wled_controller/static/index.html +++ b/server/src/wled_controller/static/index.html @@ -34,11 +34,11 @@
- +
-
+
@@ -50,6 +50,16 @@
+