From 9e0a0749233c15711fd3259afa1f19867d214df7 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期一, 22 六月 2020 16:07:35 +0800 Subject: [PATCH] 2020-06-22 --- src/templates/sharecomponent/cardcomponent/index.jsx | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/templates/sharecomponent/cardcomponent/index.jsx b/src/templates/sharecomponent/cardcomponent/index.jsx index 61a81e1..d407250 100644 --- a/src/templates/sharecomponent/cardcomponent/index.jsx +++ b/src/templates/sharecomponent/cardcomponent/index.jsx @@ -361,16 +361,16 @@ if (card.avatar.type === 'picture') { if (card.avatar.widthType === 'ratio') { - if (card.avatar.width < 90) { + if (card.avatar.width < 90 && card.avatar.display !== 'block') { metastyle.display = 'flex' } } else { - if (card.avatar.width < _cardWidth * 0.9) { + if (card.avatar.width < _cardWidth * 0.9 && card.avatar.display !== 'block') { metastyle.display = 'flex' } } } else { - if (card.avatar.size < _cardWidth * 0.9) { + if (card.avatar.size < _cardWidth * 0.9 && card.avatar.display !== 'block') { metastyle.display = 'flex' } } -- Gitblit v1.8.0