diff --git a/lib/chiya_web/components/layouts/root_public.html.heex b/lib/chiya_web/components/layouts/root_public.html.heex index 07707c5..0093347 100644 --- a/lib/chiya_web/components/layouts/root_public.html.heex +++ b/lib/chiya_web/components/layouts/root_public.html.heex @@ -90,7 +90,8 @@

Links

diff --git a/lib/chiya_web/components/public_components.ex b/lib/chiya_web/components/public_components.ex index 1386f78..883127e 100644 --- a/lib/chiya_web/components/public_components.ex +++ b/lib/chiya_web/components/public_components.ex @@ -42,9 +42,11 @@ defmodule ChiyaWeb.PublicComponents do @doc """ Renders a middot as divider """ + attr :class, :string, default: "text-theme-primary" + def dot(assigns), do: ~H""" - · + · """ @doc """ @@ -75,6 +77,7 @@ defmodule ChiyaWeb.PublicComponents do <%= tag.name %> + <.dot class="text-theme-base/50 last:hidden" /> <% end %> """ @@ -146,9 +149,9 @@ defmodule ChiyaWeb.PublicComponents do <%= if assigns.show_content do %> -

- <%= String.slice(note.content, 0..150) %> -

+

+ <%= String.slice(note.content, 0..150) %> +

<% end %> <% end %> @@ -167,7 +170,7 @@ defmodule ChiyaWeb.PublicComponents do
<%= if(note.kind == :bookmark) do %> - <%= note.name %> + <%= note.name %> <% end %>
@@ -176,18 +179,14 @@ defmodule ChiyaWeb.PublicComponents do diff --git a/lib/chiya_web/controllers/page_html/note.html.heex b/lib/chiya_web/controllers/page_html/note.html.heex index 43424e8..22c8421 100644 --- a/lib/chiya_web/controllers/page_html/note.html.heex +++ b/lib/chiya_web/controllers/page_html/note.html.heex @@ -64,7 +64,6 @@ <%= if not Enum.empty?(@note.tags) do %> <.dot /> - Tags <.tags note={@note} /> <% end %> <%= if @note.kind != :post do %> diff --git a/lib/chiya_web/controllers/page_html/wiki.html.heex b/lib/chiya_web/controllers/page_html/wiki.html.heex index f38c9e8..fb6f5b5 100644 --- a/lib/chiya_web/controllers/page_html/wiki.html.heex +++ b/lib/chiya_web/controllers/page_html/wiki.html.heex @@ -24,7 +24,6 @@ - <% else %>
<.header> diff --git a/lib/chiya_web/controllers/setting_html/show.html.heex b/lib/chiya_web/controllers/setting_html/show.html.heex index 09dc5ee..b14102f 100644 --- a/lib/chiya_web/controllers/setting_html/show.html.heex +++ b/lib/chiya_web/controllers/setting_html/show.html.heex @@ -23,18 +23,18 @@ <.list> - <:item title="Default Channel"> - <%= if @setting.default_channel, do: @setting.default_channel.name %> - - <:item title="Home Channel"> - <%= if @setting.home_channel, do: @setting.home_channel.name %> - - <:item title="Micropub Channel"> - <%= if @setting.micropub_channel, do: @setting.micropub_channel.name %> - - <:item title="Wiki Channel"> - <%= if @setting.micropub_channel, do: @setting.wiki_channel.name %> - + <:item title="Default Channel"> + <%= if @setting.default_channel, do: @setting.default_channel.name %> + + <:item title="Home Channel"> + <%= if @setting.home_channel, do: @setting.home_channel.name %> + + <:item title="Micropub Channel"> + <%= if @setting.micropub_channel, do: @setting.micropub_channel.name %> + + <:item title="Wiki Channel"> + <%= if @setting.micropub_channel, do: @setting.wiki_channel.name %> + <.list> @@ -42,5 +42,4 @@ <%= if @setting.show_images_on_home, do: "✅", else: "❌" %> - <% end %>