Activity panel: Limit visual glitches on entries on first display by hiding them all before displaying only the relevant.

Otherwise, entries from the other logs / activity tabs are visible for a second before filtering on the entry of the current tab only.
This commit is contained in:
Molkobain
2021-07-27 13:55:14 +02:00
parent f4345ef312
commit d38b655f5f

View File

@@ -1,5 +1,7 @@
{% set oFirstEntry = aEntryGroup.entries|first %}
<div class="ibo-activity-panel--entry-group {% if oFirstEntry.IsFromCurrentUser() %}ibo-is-current-user{% endif %}"
{# Note: Entry groups are hidden by default to avoid a visual glitch. #]
{# Otherwise when the page is loaded, all the entry groups are displayed for a brief moment, then they are filtered on the options of the currently displayed tab #}
<div class="ibo-activity-panel--entry-group {% if oFirstEntry.IsFromCurrentUser() %}ibo-is-current-user{% endif %} ibo-is-hidden"
data-role="ibo-activity-panel--entry-group"
data-entry-group-author-login="{{ oFirstEntry.GetAuthorLogin() }}"
data-entry-group-origin="{{ oFirstEntry.GetOrigin() }}">