diff --git a/lib/chiya_web/components/core_components.ex b/lib/chiya_web/components/core_components.ex index 50465db..76ede9f 100644 --- a/lib/chiya_web/components/core_components.ex +++ b/lib/chiya_web/components/core_components.ex @@ -31,6 +31,7 @@ defmodule ChiyaWeb.CoreComponents do end attr :class, :string, default: nil + def darkmode_toggle(assigns) do ~H""" <.link href="#" id="dark-mode-toggle" class={["text-sm leading-6", @class]}> diff --git a/lib/chiya_web/controllers/note_html/edit.html.heex b/lib/chiya_web/controllers/note_html/edit.html.heex index 755a318..7916ffe 100644 --- a/lib/chiya_web/controllers/note_html/edit.html.heex +++ b/lib/chiya_web/controllers/note_html/edit.html.heex @@ -13,4 +13,4 @@ channels={@channels} selected_channels={@selected_channels} tags={@tags} -/> \ No newline at end of file +/> diff --git a/lib/chiya_web/controllers/note_html/new.html.heex b/lib/chiya_web/controllers/note_html/new.html.heex index 82ba265..4f1f0ba 100644 --- a/lib/chiya_web/controllers/note_html/new.html.heex +++ b/lib/chiya_web/controllers/note_html/new.html.heex @@ -14,4 +14,4 @@ channels={@channels} tags={@tags} selected_channels={@selected_channels} -/> \ No newline at end of file +/> diff --git a/lib/chiya_web/controllers/note_html/note_form.html.heex b/lib/chiya_web/controllers/note_html/note_form.html.heex index f176af6..2dabdb1 100644 --- a/lib/chiya_web/controllers/note_html/note_form.html.heex +++ b/lib/chiya_web/controllers/note_html/note_form.html.heex @@ -4,12 +4,7 @@ <.input field={f[:name]} type="text" /> - <.input field={f[:content]} - type="textarea" - label="Content" - rows="15" - class="font-mono" - /> + <.input field={f[:content]} type="textarea" label="Content" rows="15" class="font-mono" /> <.input field={f[:slug]} type="text" label="Slug" /> <.input field={f[:published_at]} type="datetime-local" label="Published at" /> <.input diff --git a/lib/chiya_web/controllers/page_html/about.html.heex b/lib/chiya_web/controllers/page_html/about.html.heex index becbcf3..f6b694b 100644 --- a/lib/chiya_web/controllers/page_html/about.html.heex +++ b/lib/chiya_web/controllers/page_html/about.html.heex @@ -1,6 +1,5 @@
-
<%= @user.name %> <:subtitle><%= @user.bio %> -
<%= if @note do %> diff --git a/lib/chiya_web/controllers/page_html/note.html.heex b/lib/chiya_web/controllers/page_html/note.html.heex index 0cbb261..0185eaf 100644 --- a/lib/chiya_web/controllers/page_html/note.html.heex +++ b/lib/chiya_web/controllers/page_html/note.html.heex @@ -6,19 +6,22 @@ <%= if @current_user do %>
<% end %> <%= if has_outline?(@note) do %> - + <% end %>