From fdff48d1978cedb0a5951fd2a223fbe9bab7a82a Mon Sep 17 00:00:00 2001 From: inhji Date: Wed, 5 Jul 2023 16:40:11 +0200 Subject: [PATCH] =?UTF-8?q?=E2=80=9Elib/chiya=5Fweb/components/public=5Fco?= =?UTF-8?q?mponents.ex=E2=80=9C=20=C3=A4ndern?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/chiya_web/components/public_components.ex | 27 ++++++------------- 1 file changed, 8 insertions(+), 19 deletions(-) diff --git a/lib/chiya_web/components/public_components.ex b/lib/chiya_web/components/public_components.ex index b98c3d5..0f2461a 100644 --- a/lib/chiya_web/components/public_components.ex +++ b/lib/chiya_web/components/public_components.ex @@ -69,30 +69,19 @@ defmodule ChiyaWeb.PublicComponents do Renders a note-header with title. """ attr :class, :string, default: nil - attr :inline, :boolean, default: false - slot :inner_block, required: true + slot :title, required: true slot :subtitle - slot :actions def header(assigns) do ~H""" -
-
-

- <%= render_slot(@inner_block) %> - - <%= render_slot(@subtitle) %> - -

-

- <%= render_slot(@subtitle) %> -

-
-
<%= render_slot(@actions) %>
+
+

+ <%= render_slot(@title) %> +

+

+ <%= render_slot(@subtitle) %> +

""" end