A free, self-hostable news aggregator…
Loader animation while waiting for first articles (#2845)
Alexandre Alapetite22916d6a3ed2
diff --git a/app/layout/nav_menu.phtml b/app/layout/nav_menu.phtmlindex aae02c820..63b032e47 100644--- a/app/layout/nav_menu.phtml+++ b/app/layout/nav_menu.phtml@@ -1,3 +1,5 @@+<div id="first_load" class="loading"></div>+<?php$actual_view = Minz_Request::actionName();flush();@@ -197,7 +199,7 @@<?php } ?></form></div>-+<?phpif (FreshRSS_Context::$order === 'DESC') {$order = 'ASC';@@ -214,8 +216,9 @@<a id="toggle-order" class="btn" href="<?= Minz_Url::display($url_order) ?>" title="<?= $title ?>"><?= _i($icon) ?></a>-+<?php if (FreshRSS_Auth::hasAccess() || FreshRSS_Context::$system_conf->allow_anonymous_refresh) { ?><a id="actualize" class="btn" href="<?= _url('feed', 'actualize') ?>" title="<?= _t('gen.action.actualize') ?>"><?= _i('refresh') ?></a><?php } ?></div>+<?php flush(); ?>diff --git a/p/themes/Alternative-Dark/template.css b/p/themes/Alternative-Dark/template.cssindex 0ec76ea2d..39d7449dd 100644--- a/p/themes/Alternative-Dark/template.css+++ b/p/themes/Alternative-Dark/template.css@@ -868,7 +868,21 @@ br {display: block;}-/*=== "Load more" part */+/*=== "Load" parts */+#stream {+ position: relative;+ z-index: 5;+}++/* Only matches while waiting for div#stream to be received */+#first_load:nth-last-of-type(2) {+ margin: -40px auto 0 auto;+ height: 40px;+ position: relative;+ top: 250px;+ z-index: 2;+}+#load_more {min-height: 40px;}diff --git a/p/themes/Alternative-Dark/template.rtl.css b/p/themes/Alternative-Dark/template.rtl.cssindex a8e979273..9694a7f78 100644--- a/p/themes/Alternative-Dark/template.rtl.css+++ b/p/themes/Alternative-Dark/template.rtl.css@@ -868,7 +868,21 @@ br {display: block;}-/*=== "Load more" part */+/*=== "Load" parts */+#stream {+ position: relative;+ z-index: 5;+}++/* Only matches while waiting for div#stream to be received */+#first_load:nth-last-of-type(2) {+ margin: -40px auto 0 auto;+ height: 40px;+ position: relative;+ top: 250px;+ z-index: 2;+}+#load_more {min-height: 40px;}diff --git a/p/themes/base-theme/template.css b/p/themes/base-theme/template.cssindex ed10c9c7d..8c7e77697 100644--- a/p/themes/base-theme/template.css+++ b/p/themes/base-theme/template.css@@ -868,7 +868,21 @@ br {display: block;}-/*=== "Load more" part */+/*=== "Load" parts */+#stream {+ position: relative;+ z-index: 5;+}++/* Only matches while waiting for div#stream to be received */+#first_load:nth-last-of-type(2) {+ margin: -40px auto 0 auto;+ height: 40px;+ position: relative;+ top: 250px;+ z-index: 2;+}+#load_more {min-height: 40px;}diff --git a/p/themes/base-theme/template.rtl.css b/p/themes/base-theme/template.rtl.cssindex 39942449c..1ea778bee 100644--- a/p/themes/base-theme/template.rtl.css+++ b/p/themes/base-theme/template.rtl.css@@ -868,7 +868,21 @@ br {display: block;}-/*=== "Load more" part */+/*=== "Load" parts */+#stream {+ position: relative;+ z-index: 5;+}++/* Only matches while waiting for div#stream to be received */+#first_load:nth-last-of-type(2) {+ margin: -40px auto 0 auto;+ height: 40px;+ position: relative;+ top: 250px;+ z-index: 2;+}+#load_more {min-height: 40px;}