Format code

This commit is contained in:
Alex
2023-04-21 12:50:53 +02:00
parent b5ce5a6e30
commit 736c4a3dba
7 changed files with 8 additions and 19 deletions

View File

@@ -68,7 +68,6 @@ config :ex_aws,
config :claper, max_file_size: System.get_env("MAX_FILE_SIZE_MB") || 15
# Import environment specific config. This must remain at the bottom
# of this file so it overrides the configuration defined above.
import_config "#{config_env()}.exs"

View File

@@ -76,8 +76,6 @@ if config_env() == :prod do
# Swoosh supports Hackney and Finch out of the box:
#
if System.get_env("MAIL_TRANSPORT", "local") == "smtp" do
config :claper, Claper.Mailer,
adapter: Swoosh.Adapters.SMTP,

View File

@@ -18,7 +18,8 @@ defmodule ClaperWeb.EventLive.EventFormComponent do
accept: ~w(.pdf .ppt .pptx),
auto_upload: true,
max_entries: 1,
max_file_size: max_file_size * 1_000_000 # MB
# MB
max_file_size: max_file_size * 1_000_000
)}
end

View File

@@ -75,7 +75,9 @@
</label>
<p class="pl-1"><%= gettext("or drag and drop") %></p>
</div>
<p class="text-xs text-gray-500"><%= gettext("PDF, PPT, PPTX up to %{size} MB", size: @max_file_size) %></p>
<p class="text-xs text-gray-500">
<%= gettext("PDF, PPT, PPTX up to %{size} MB", size: @max_file_size) %>
</p>
<%= for entry <- @uploads.presentation_file.entries do %>
<progress id="file" max="100" value={entry.progress}>
<%= entry.progress %>

View File

@@ -790,10 +790,7 @@
<span class="font-semibold text-lg"><%= gettext("Attendees settings") %></span>
<div class="flex space-x-2 items-center mt-3">
<ClaperWeb.Component.Input.check
key={:chat_enabled}
checked={@state.chat_enabled}
/>
<ClaperWeb.Component.Input.check key={:chat_enabled} checked={@state.chat_enabled} />
<span><%= gettext("Enable messages") %></span>
</div>
</div>

View File

@@ -157,13 +157,8 @@
<%= error_tag(f, :body) %>
<%= submit("Save", phx_disable_with: "Saving...", id: "hiddenSubmit", class: "hidden") %>
</.form>
<% else %>
<div
id="post-form"
class="fixed bottom-12 w-full lg:w-1/3 lg:mx-auto"
>
<div id="post-form" class="fixed bottom-12 w-full lg:w-1/3 lg:mx-auto">
<div
class="rounded-full text-base px-4 py-2 mx-5 relative"
style="
@@ -173,7 +168,6 @@
backdrop-filter: blur(11.5px);
-webkit-backdrop-filter: blur(11.5px);"
>
<div class="flex space-x-2 items-center">
<div class="opacity-50 bg-transparent outline-none w-full text-white h-10 placeholder-white pt-3 resize-none pr-20 leading-4 overflow-y-hidden focus:overflow-y-auto">
<%= gettext("Messages deactivated") %>
@@ -181,8 +175,6 @@
</div>
</div>
</div>
<% end %>
<div class="flex space-x-6 fixed justify-center bottom-3 w-full lg:w-1/3 lg:mx-auto">