Skip to content

Commit

Permalink
Fix format
Browse files Browse the repository at this point in the history
  • Loading branch information
alxlion committed Apr 27, 2024
1 parent b78e01a commit 103cb6f
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 4 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

### Fixes and improvements

- Fix responsive layout
- Fix responsive layout on dashboard
- Fix presenter layout with embeds when messages are hidden
- Fix missing stream for form submits

## v2.0.0

Expand Down
4 changes: 3 additions & 1 deletion lib/claper/forms.ex
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,9 @@ defmodule Claper.Forms do
|> Repo.insert_or_update()
|> case do
{:ok, r} ->
r = Repo.preload(r, :form) # Preloading form in FormSubmit
# Preloading form in FormSubmit
r = Repo.preload(r, :form)

case fs do
nil -> broadcast({:ok, r, event_uuid}, :form_submit_created)
_form_submit -> broadcast({:ok, r, event_uuid}, :form_submit_updated)
Expand Down
13 changes: 11 additions & 2 deletions lib/claper_web/templates/layout/_profile_dropdown.html.heex
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,17 @@
>
<span class="sr-only">Open user menu</span>
<span class="hidden sm:block"><%= @user.email %></span>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" class="sm:hidden w-5 h-5">
<path fill-rule="evenodd" d="M18 10a8 8 0 1 1-16 0 8 8 0 0 1 16 0Zm-5.5-2.5a2.5 2.5 0 1 1-5 0 2.5 2.5 0 0 1 5 0ZM10 12a5.99 5.99 0 0 0-4.793 2.39A6.483 6.483 0 0 0 10 16.5a6.483 6.483 0 0 0 4.793-2.11A5.99 5.99 0 0 0 10 12Z" clip-rule="evenodd" />
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 20 20"
fill="currentColor"
class="sm:hidden w-5 h-5"
>
<path
fill-rule="evenodd"
d="M18 10a8 8 0 1 1-16 0 8 8 0 0 1 16 0Zm-5.5-2.5a2.5 2.5 0 1 1-5 0 2.5 2.5 0 0 1 5 0ZM10 12a5.99 5.99 0 0 0-4.793 2.39A6.483 6.483 0 0 0 10 16.5a6.483 6.483 0 0 0 4.793-2.11A5.99 5.99 0 0 0 10 12Z"
clip-rule="evenodd"
/>
</svg>
</button>
</div>
Expand Down

0 comments on commit 103cb6f

Please sign in to comment.