diff --git a/js/app.js b/js/app.js index c880877..1e8e944 100644 --- a/js/app.js +++ b/js/app.js @@ -6794,6 +6794,14 @@ async function loadServerSettings() { // Apply visual settings immediately. if (remote.theme) setTheme(remote.theme); if ('sidebarCollapsed' in remote) applySidebarCollapsed(); + // viewMode's active-button highlight + column-picker visibility were + // set once at init from the (port-wiped) localStorage default 'cards'; + // re-sync them to the server value so the toolbar matches the content. + if ('viewMode' in remote) { + $$('.view-btn').forEach(b => + b.classList.toggle('is-active', b.dataset.view === state.viewMode)); + applyColsWrapVisibility(); + } } catch (e) { // Network/server hiccup is harmless — localStorage cache still works. }