mirror of
https://github.com/MarekWo/mc-webui.git
synced 2026-05-18 15:25:49 +02:00
927fc518f0
The threshold above which the channel/DM list shows as a sidebar (vs. collapsing to a top dropdown) is now user-configurable in Settings -> Interface -> Layout. Persisted per device in LocalStorage (key: mc-webui-sidebar-breakpoint, default: 992px, range: 600-2000). Implementation: replaced hardcoded `@media (min-width: 992px)` with a `.layout-wide` class on <html>, toggled by JS based on window.innerWidth vs. the user's breakpoint. An inline script in <head> applies the class synchronously to prevent layout flash on page load (same pattern as theme). Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>