From 666c499c722893d57bccf2c16a0fb6c3b4665f34 Mon Sep 17 00:00:00 2001 From: Thelonius Kort Date: Sat, 11 Feb 2023 20:05:00 +0100 Subject: [PATCH] Add .breakpoint_indicator --- lib/outlook_web/components/dark_mode_component.ex | 13 +++++++++++++ lib/outlook_web/components/layouts/public.html.heex | 1 + 2 files changed, 14 insertions(+) diff --git a/lib/outlook_web/components/dark_mode_component.ex b/lib/outlook_web/components/dark_mode_component.ex index f937361..534f582 100644 --- a/lib/outlook_web/components/dark_mode_component.ex +++ b/lib/outlook_web/components/dark_mode_component.ex @@ -38,4 +38,17 @@ defmodule OutlookWeb.DarkModeComponent do """ end + + def breakpoint_indicator(assigns) do + ~H""" +
+ xs + + + + + +
+ """ + end end diff --git a/lib/outlook_web/components/layouts/public.html.heex b/lib/outlook_web/components/layouts/public.html.heex index 6b05510..760f728 100644 --- a/lib/outlook_web/components/layouts/public.html.heex +++ b/lib/outlook_web/components/layouts/public.html.heex @@ -1,4 +1,5 @@
+ <.breakpoint_indicator :if={Mix.env == :dev} />