Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

app-loading: Add a delay before showing the reload message.

Aman Agrawald7444f919d35
diff --git a/templates/zerver/app/index.html b/templates/zerver/app/index.html
index 13ada87e645..4a258c06235 100644
--- a/templates/zerver/app/index.html
+++ b/templates/zerver/app/index.html
@@ -37,9 +37,20 @@
#app-loading-middle-content h3 {
text-align: center;
}
+ @keyframes showAtEnd {
+ 99% {
+ visibility: hidden;
+ }
+ 100% {
+ visibility: visible;
+ }
+ }
#app-loading-bottom-content {
top: unset;
bottom: 20px;
+ animation: 7s showAtEnd;
+ animation-fill-mode: forwards;
+ visibility: hidden;
}
body.color-scheme-automatic #app-loading{
color: hsl(0, 0%, 20%);
@@ -63,7 +74,7 @@
<h3>{{ _('Loading...') }}</h3>
</div>
<div id="app-loading-bottom-content">
- <p>{% trans %}If this message does not go away, please wait a couple seconds and <a id="reload-lnk">reload</a> the page.{% endtrans %}</p>
+ <p>{% trans %}If this message does not go away, try <a id="reload-lnk">reloading</a> the page.{% endtrans %}</p>
<script nonce="{{ csp_nonce }}">
document.addEventListener('DOMContentLoaded', function () {
function reload() {