fix: unread level

This commit is contained in:
Jean-Baptiste Pasquier 2021-04-02 11:38:46 +02:00
parent e2656cc661
commit 4d88f3d2e6
2 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@ document.addEventListener("DOMContentLoaded", function () {
if (event.detail && event.detail.resource && event.detail.resource['@id']) {
const badge = document.querySelector(`solid-badge[data-src="${event.detail.resource['@id']}"]`);
if (badge) {
badge.parentElement.parentElement.classList.remove('unread');
badge.parentElement.parentElement.parentElement.classList.remove('unread');
const project = badge.parentElement.parentElement.querySelector('.unread');
if (project) project.classList.remove('unread');
}

View File

@ -2,5 +2,5 @@ if componentSet.has('circles') || componentSet.has('projects')
solid-widget(name='hubl-menu-publicprivate')
template
div(
class="${value == 'Public' ? 'bold-on-unread text-large': 'text-simple-line-icons text-xsmall'}"
class="${value == 'Public' ? 'text-large': 'text-simple-line-icons text-xsmall'}"
) ${value == 'Public' ? '#' : ''}