From 014cfaa5c874ce9e736cfc811c53adc0f1417982 Mon Sep 17 00:00:00 2001
From: gaelle morin <gmorin.dev@gmail.com>
Date: Wed, 15 Jul 2020 19:21:49 +0200
Subject: [PATCH] feature: notification - default avatar + styles added (bis)

---
 src/views/circle/page-circle-notifications.pug | 2 +-
 src/views/user/page-user-notifications.pug     | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/views/circle/page-circle-notifications.pug b/src/views/circle/page-circle-notifications.pug
index 39590a7c..2ebc1ea6 100644
--- a/src/views/circle/page-circle-notifications.pug
+++ b/src/views/circle/page-circle-notifications.pug
@@ -1,7 +1,7 @@
 solid-notifications-template(data-rdf-type='hd:circle')
   template
     .solid-notification__avatar
-      img(src="${await author['account.foaf:depiction'] || '/images/alien.svg'}" style=`max-height:${clientLogoHeight || '18px'}`)
+      img(src="${await author['account.foaf:depiction'] || '/images/alien.svg'}" style="${await author['account.foaf:depiction'] ? 'max-height:100%' : 'max-height:18px'}")
     .solid-notification__content
       .solid-notification__title ${await author.name} 
         span.solid-notification__title__side dans 
diff --git a/src/views/user/page-user-notifications.pug b/src/views/user/page-user-notifications.pug
index 7ae707b1..56fdd8f1 100644
--- a/src/views/user/page-user-notifications.pug
+++ b/src/views/user/page-user-notifications.pug
@@ -1,7 +1,7 @@
 solid-notifications-template(data-rdf-type='foaf:user')
   template
     .solid-notification__avatar
-      img(src="${await author['account.foaf:depiction'] || '/images/alien.svg'}" style=`max-height:${clientLogoHeight || '18px'}`)
+      img(src="${await author['account.foaf:depiction'] || '/images/alien.svg'}" style="${await author['account.foaf:depiction'] ? 'max-height:100%' : 'max-height:18px'}")
     .solid-notification__content
       .solid-notification__title ${await author.name} 
         span.solid-notification__title__side en privé
-- 
GitLab