diff --git a/lib/claper/embeds/embed.ex b/lib/claper/embeds/embed.ex index 2806c467..021fa84d 100644 --- a/lib/claper/embeds/embed.ex +++ b/lib/claper/embeds/embed.ex @@ -34,6 +34,8 @@ defmodule Claper.Embeds.Embed do :position, :attendee_visibility ]) - |> validate_format(:content, ~r//, message: gettext("Invalid embed format (should start with )")) + |> validate_format(:content, ~r//, + message: gettext("Invalid embed format (should start with )") + ) end end diff --git a/lib/claper_web/live/embed_live/form_component.html.heex b/lib/claper_web/live/embed_live/form_component.html.heex index 15da2fdd..bf07172e 100644 --- a/lib/claper_web/live/embed_live/form_component.html.heex +++ b/lib/claper_web/live/embed_live/form_component.html.heex @@ -32,7 +32,10 @@
<%= checkbox(f, :attendee_visibility, class: "h-4 w-5") %> - <%= label(f, :attendee_visibility, gettext("Attendee can view the web content on their device"), + <%= label( + f, + :attendee_visibility, + gettext("Attendee can view the web content on their device"), class: "text-sm font-medium" ) %>
diff --git a/lib/claper_web/live/event_live/manage.ex b/lib/claper_web/live/event_live/manage.ex index 6fd96e74..26212d5e 100644 --- a/lib/claper_web/live/event_live/manage.ex +++ b/lib/claper_web/live/event_live/manage.ex @@ -589,7 +589,6 @@ defmodule ClaperWeb.EventLive.Manage do "pinned_posts" -> socket |> assign(:pinned_posts, list_pinned_posts(socket, socket.assigns.event.uuid)) - end {:noreply, socket} diff --git a/lib/claper_web/live/event_live/manage.html.heex b/lib/claper_web/live/event_live/manage.html.heex index 9f361e18..3c5b90c4 100644 --- a/lib/claper_web/live/event_live/manage.html.heex +++ b/lib/claper_web/live/event_live/manage.html.heex @@ -711,7 +711,11 @@
  • - <%= link(gettext("Pinned messages") <> " (#{ length(@pinned_posts)})", to: "#", phx_click: "list-tab", phx_value_tab: :pinned_posts) %> + <%= link(gettext("Pinned messages") <> " (#{length(@pinned_posts)})", + to: "#", + phx_click: "list-tab", + phx_value_tab: :pinned_posts + ) %>
  • @@ -900,27 +904,37 @@ <% end %> <%= if @list_tab == :pinned_posts do %> <%= if Enum.count(@pinned_posts) == 0 do %> -
    + + + - - -

    - <%= gettext("Pinned messages will appear here.") %> -

    -
    - <% end %> +

    + <%= gettext("Pinned messages will appear here.") %> +

    + + <% end %> -
    <%= if Enum.any?(@pinned_posts) do %>
    + >
    <%= if post.attendee_identifier do %> @@ -1064,7 +1078,6 @@
    <% end %> - <%= if @list_tab==:forms do %> <%= if Enum.count(@form_submits)==0 do %>
    diff --git a/lib/claper_web/live/event_live/poll_component.ex b/lib/claper_web/live/event_live/poll_component.ex index 5d47e482..2749df1f 100644 --- a/lib/claper_web/live/event_live/poll_component.ex +++ b/lib/claper_web/live/event_live/poll_component.ex @@ -74,7 +74,8 @@ defmodule ClaperWeb.EventLive.PollComponent do <%= if @poll.multiple do %> <% else %> - + + <% end %> <% end %> <%= opt.content %> @@ -104,7 +105,8 @@ defmodule ClaperWeb.EventLive.PollComponent do <%= if @poll.multiple do %> <% else %> - + + <% end %> <% end %> <%= opt.content %>