aprs.me/lib/aprsme_web/components/layouts.ex
Graham McIntire aca0571a3e
Replace JS hooks with LiveView patterns for map page styling, slideover, and theme switching
- Remove BodyClassHook: use CSS :has() selectors on data-map-page attribute
  instead of JS toggling body.map-page class
- Remove ResponsiveSlideoverHook: pass viewport_width via LiveSocket connect
  params and determine initial slideover state server-side
- Convert theme selector from data-set-theme attributes with DOMContentLoaded
  listeners to JS.dispatch("phx:set-theme") with a single event handler
- Fix buggy reRenderAllCharts that incorrectly used `new MapAPRSMap()` as a
  Map constructor; charts now re-render via themeChanged event directly
2026-02-19 09:26:53 -06:00

10 lines
177 B
Elixir

defmodule AprsmeWeb.Layouts do
@moduledoc false
use AprsmeWeb, :html
embed_templates "layouts/*"
def body_class(_assigns) do
["bg-base-100 antialiased"]
end
end