diff --git a/assets/css/app.scss b/assets/css/app.scss index 0d33aa81..8de2fc71 100644 --- a/assets/css/app.scss +++ b/assets/css/app.scss @@ -25,12 +25,13 @@ $fa-font-path: "@fortawesome/fontawesome-free/webfonts"; 100% { scale: 1.0; opacity: 1; } } -.phx-connected > #disconnect, #loading { +// disconnect toast +.phx-connected > #disconnect { opacity: 0 !important; pointer-events: none; } -.phx-loading:not(.phx-error) > #loading, .phx-error > #disconnect { +.phx-error > #disconnect { opacity: 0.95 !important; } diff --git a/lib/lokal_web/templates/layout/live.html.heex b/lib/lokal_web/templates/layout/live.html.heex index fe172ea1..feb3439b 100644 --- a/lib/lokal_web/templates/layout/live.html.heex +++ b/lib/lokal_web/templates/layout/live.html.heex @@ -27,28 +27,16 @@ -
-

- <%= gettext("Loading...") %> -

- - -
-
-

+ + +

<%= gettext("Reconnecting...") %>

- -
diff --git a/priv/gettext/default.pot b/priv/gettext/default.pot index aee4035c..9fdb200f 100644 --- a/priv/gettext/default.pot +++ b/priv/gettext/default.pot @@ -48,11 +48,6 @@ msgstr "" msgid "Keep me logged in for 60 days" 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 #, elixir-autogen, elixir-format msgid "Log in" @@ -63,7 +58,7 @@ msgstr "" msgid "New password" msgstr "" -#: lib/lokal_web/templates/layout/live.html.heex:50 +#: lib/lokal_web/templates/layout/live.html.heex:40 #, elixir-autogen, elixir-format msgid "Reconnecting..." msgstr "" diff --git a/priv/gettext/en/LC_MESSAGES/default.po b/priv/gettext/en/LC_MESSAGES/default.po index 6b6526c6..e15ced6e 100644 --- a/priv/gettext/en/LC_MESSAGES/default.po +++ b/priv/gettext/en/LC_MESSAGES/default.po @@ -48,11 +48,6 @@ msgstr "" msgid "Keep me logged in for 60 days" 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 #, elixir-autogen, elixir-format msgid "Log in" @@ -63,7 +58,7 @@ msgstr "" msgid "New password" msgstr "" -#: lib/lokal_web/templates/layout/live.html.heex:50 +#: lib/lokal_web/templates/layout/live.html.heex:40 #, elixir-autogen, elixir-format msgid "Reconnecting..." msgstr ""