mirror of
https://github.com/ClaperCo/Claper.git
synced 2026-08-29 10:09:08 +02:00
Add MAX_FILE_SIZE_MB settings and message activation switch
This commit is contained in:
@@ -107,7 +107,7 @@
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
<%= if @empty_room do %>
|
||||
<%= if @empty_room && @state.chat_enabled do %>
|
||||
<div class="text-2xl text-white block fixed bottom-32 left-0 w-full lg:w-1/3 lg:left-1/2 lg:transform lg:-translate-x-1/2 text-center opacity-30">
|
||||
<span><%= gettext("Be the first to react !") %></span>
|
||||
<img src="/images/icons/arrow-white.svg" class="h-24 rotate-180 ml-12 mt-8" />
|
||||
@@ -123,38 +123,67 @@
|
||||
>
|
||||
</div>
|
||||
|
||||
<.form
|
||||
:let={f}
|
||||
for={@post_changeset}
|
||||
id="post-form"
|
||||
class="fixed bottom-12 w-full lg:w-1/3 lg:mx-auto"
|
||||
phx-hook="PostForm"
|
||||
phx-submit="save"
|
||||
>
|
||||
<div
|
||||
class="rounded-full text-base px-4 py-2 mx-5 relative"
|
||||
style="
|
||||
background: rgb(17,134,213);
|
||||
background: linear-gradient(333deg, rgba(17,134,213,0.4962359943977591) 0%, rgba(163,39,255,0.5046393557422969) 100%);
|
||||
box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
|
||||
backdrop-filter: blur(11.5px);
|
||||
-webkit-backdrop-filter: blur(11.5px);"
|
||||
<%= if @state.chat_enabled do %>
|
||||
<.form
|
||||
:let={f}
|
||||
for={@post_changeset}
|
||||
id="post-form"
|
||||
class="fixed bottom-12 w-full lg:w-1/3 lg:mx-auto"
|
||||
phx-hook="PostForm"
|
||||
phx-submit="save"
|
||||
>
|
||||
<button class="absolute right-10 top-4 opacity-50" id="submitBtn">
|
||||
<img src="/images/icons/send.svg" class="h-6" />
|
||||
</button>
|
||||
<div class="flex space-x-2 items-center">
|
||||
<%= textarea(f, :body,
|
||||
id: "postFormTA",
|
||||
class:
|
||||
"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",
|
||||
placeholder: gettext("Ask, comment...")
|
||||
) %>
|
||||
<div
|
||||
class="rounded-full text-base px-4 py-2 mx-5 relative"
|
||||
style="
|
||||
background: rgb(17,134,213);
|
||||
background: linear-gradient(333deg, rgba(17,134,213,0.4962359943977591) 0%, rgba(163,39,255,0.5046393557422969) 100%);
|
||||
box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
|
||||
backdrop-filter: blur(11.5px);
|
||||
-webkit-backdrop-filter: blur(11.5px);"
|
||||
>
|
||||
<button class="absolute right-10 top-4 opacity-50" id="submitBtn">
|
||||
<img src="/images/icons/send.svg" class="h-6" />
|
||||
</button>
|
||||
|
||||
<div class="flex space-x-2 items-center">
|
||||
<%= textarea(f, :body,
|
||||
id: "postFormTA",
|
||||
class:
|
||||
"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",
|
||||
placeholder: gettext("Ask, comment...")
|
||||
) %>
|
||||
</div>
|
||||
</div>
|
||||
<%= 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
|
||||
class="rounded-full text-base px-4 py-2 mx-5 relative"
|
||||
style="
|
||||
background: rgb(17,134,213);
|
||||
background: linear-gradient(333deg, rgba(17,134,213,0.4962359943977591) 0%, rgba(163,39,255,0.5046393557422969) 100%);
|
||||
box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
|
||||
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") %>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<%= error_tag(f, :body) %>
|
||||
<%= submit("Save", phx_disable_with: "Saving...", id: "hiddenSubmit", class: "hidden") %>
|
||||
</.form>
|
||||
|
||||
|
||||
<% end %>
|
||||
|
||||
<div class="flex space-x-6 fixed justify-center bottom-3 w-full lg:w-1/3 lg:mx-auto">
|
||||
<a
|
||||
|
||||
Reference in New Issue
Block a user