forked from shibao/cannery
minimize disconnection modal
This commit is contained in:
parent
469428c007
commit
27af5acf8b
@ -25,12 +25,13 @@ $fa-font-path: "@fortawesome/fontawesome-free/webfonts";
|
|||||||
100% { scale: 1.0; opacity: 1; }
|
100% { scale: 1.0; opacity: 1; }
|
||||||
}
|
}
|
||||||
|
|
||||||
.phx-connected > #disconnect, #loading {
|
// disconnect toast
|
||||||
|
.phx-connected > #disconnect {
|
||||||
opacity: 0 !important;
|
opacity: 0 !important;
|
||||||
pointer-events: none;
|
pointer-events: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.phx-loading:not(.phx-error) > #loading, .phx-error > #disconnect {
|
.phx-error > #disconnect {
|
||||||
opacity: 0.95 !important;
|
opacity: 0.95 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -27,28 +27,16 @@
|
|||||||
</div>
|
</div>
|
||||||
</main>
|
</main>
|
||||||
|
|
||||||
<div
|
|
||||||
id="loading"
|
|
||||||
class="fixed opacity-0 top-0 left-0 w-screen h-screen bg-white z-50
|
|
||||||
flex flex-col justify-center items-center space-y-4
|
|
||||||
transition-opacity ease-in-out duration-500"
|
|
||||||
>
|
|
||||||
<h1 class="title text-2xl title-primary-500 text-primary-500">
|
|
||||||
<%= gettext("Loading...") %>
|
|
||||||
</h1>
|
|
||||||
|
|
||||||
<i class="fas fa-3x fa-spin fa-gear text-primary-500"></i>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div
|
<div
|
||||||
id="disconnect"
|
id="disconnect"
|
||||||
class="fixed opacity-0 top-0 left-0 w-screen h-screen bg-white z-50
|
class="z-50 fixed opacity-0 bottom-12 right-12 px-8 py-4 w-max h-max
|
||||||
flex flex-col justify-center items-center space-y-4
|
border border-primary-200 shadow-lg rounded-lg bg-white
|
||||||
transition-opacity ease-in-out duration-500"
|
flex justify-center items-center space-x-4
|
||||||
|
transition-opacity ease-in-out duration-500 delay-[2000ms]"
|
||||||
>
|
>
|
||||||
<h1 class="title text-2xl title-primary-500 text-primary-500">
|
<i class="fas fa-fade text-md fa-satellite-dish"></i>
|
||||||
|
|
||||||
|
<h1 class="title text-md title-primary-500">
|
||||||
<%= gettext("Reconnecting...") %>
|
<%= gettext("Reconnecting...") %>
|
||||||
</h1>
|
</h1>
|
||||||
|
|
||||||
<i class="fas fa-3x fa-fade fa-satellite-dish text-primary-500"></i>
|
|
||||||
</div>
|
</div>
|
||||||
|
@ -48,11 +48,6 @@ msgstr ""
|
|||||||
msgid "Keep me logged in for 60 days"
|
msgid "Keep me logged in for 60 days"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/lokal_web/templates/layout/live.html.heex:37
|
|
||||||
#, elixir-autogen, elixir-format
|
|
||||||
msgid "Loading..."
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: lib/lokal_web/controllers/user_session_controller.ex:8
|
#: lib/lokal_web/controllers/user_session_controller.ex:8
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Log in"
|
msgid "Log in"
|
||||||
@ -63,7 +58,7 @@ msgstr ""
|
|||||||
msgid "New password"
|
msgid "New password"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/lokal_web/templates/layout/live.html.heex:50
|
#: lib/lokal_web/templates/layout/live.html.heex:40
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Reconnecting..."
|
msgid "Reconnecting..."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
@ -48,11 +48,6 @@ msgstr ""
|
|||||||
msgid "Keep me logged in for 60 days"
|
msgid "Keep me logged in for 60 days"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/lokal_web/templates/layout/live.html.heex:37
|
|
||||||
#, elixir-autogen, elixir-format
|
|
||||||
msgid "Loading..."
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: lib/lokal_web/controllers/user_session_controller.ex:8
|
#: lib/lokal_web/controllers/user_session_controller.ex:8
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Log in"
|
msgid "Log in"
|
||||||
@ -63,7 +58,7 @@ msgstr ""
|
|||||||
msgid "New password"
|
msgid "New password"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: lib/lokal_web/templates/layout/live.html.heex:50
|
#: lib/lokal_web/templates/layout/live.html.heex:40
|
||||||
#, elixir-autogen, elixir-format
|
#, elixir-autogen, elixir-format
|
||||||
msgid "Reconnecting..."
|
msgid "Reconnecting..."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
Loading…
Reference in New Issue
Block a user