Merge pull request 'devel' (#65) from devel into main

Reviewed-on: #65
This commit is contained in:
inhji 2023-04-13 13:26:15 +02:00
commit f8b2171646
2 changed files with 10 additions and 7 deletions

View file

@ -93,20 +93,20 @@ defmodule ChiyaWeb.AdminComponents do
<.link <.link
href="#" href="#"
id="dark-mode-toggle" id="dark-mode-toggle"
class="text-xs leading-6 text-gray-900 dark:text-gray-100 dark:hover:text-gray-300 hover:text-gray-700" class="text-sm leading-6 text-gray-900 dark:text-gray-100 dark:hover:text-gray-300 hover:text-gray-700"
>🌙</.link> >🌙</.link>
</li> </li>
<li> <li>
<.link <.link
href={~p"/admin"} href={~p"/admin"}
class="text-xs leading-6 text-gray-900 dark:text-gray-100 dark:hover:text-gray-300 hover:text-gray-700" class="text-sm leading-6 text-gray-900 dark:text-gray-100 dark:hover:text-gray-300 hover:text-gray-700"
>Admin</.link> >Admin</.link>
</li> </li>
<li> <li>
<.link <.link
href={~p"/user/log_out"} href={~p"/user/log_out"}
method="delete" method="delete"
class="text-xs leading-6 text-gray-900 dark:text-gray-100 dark:hover:text-gray-300 hover:text-gray-700" class="text-sm leading-6 text-gray-900 dark:text-gray-100 dark:hover:text-gray-300 hover:text-gray-700"
>Log out</.link> >Log out</.link>
</li> </li>
<% else %> <% else %>
@ -114,10 +114,8 @@ defmodule ChiyaWeb.AdminComponents do
<.link <.link
href="#" href="#"
id="dark-mode-toggle" id="dark-mode-toggle"
class="text-xs leading-6 text-gray-900 dark:text-gray-100 font-semibold dark:hover:text-gray-300 hover:text-gray-700" class="text-sm leading-6 text-gray-900 dark:text-gray-100 font-semibold dark:hover:text-gray-300 hover:text-gray-700"
> >🌙</.link>
<.icon name="hero-sun-mini" class="h-4 w-4" />
</.link>
</li> </li>
<li> <li>
<.link <.link

View file

@ -3,6 +3,11 @@
<:subtitle>Use this form to manage note image records in your database.</:subtitle> <:subtitle>Use this form to manage note image records in your database.</:subtitle>
</.header> </.header>
<img
class="rounded-lg border border-theme-dim"
src={ChiyaWeb.Uploaders.NoteImage.url({image.path, image}, :full_dithered)}
/>
<.simple_form <.simple_form
:let={f} :let={f}
for={@changeset} for={@changeset}