Disable card if there's a poll or media attachment

Regardless of the size
This commit is contained in:
Lim Chee Aun 2023-01-05 15:28:04 +08:00
parent a4b452e177
commit 599d81f924

View file

@ -434,8 +434,8 @@ function Status({
{!!card && {!!card &&
!sensitive && !sensitive &&
!spoilerText && !spoilerText &&
(size === 'l' || !poll &&
(size === 'm' && !poll && !mediaAttachments.length)) && ( !mediaAttachments.length && (
<Card <Card
card={card} card={card}
size={!poll && !mediaAttachments.length ? 'l' : 'm'} size={!poll && !mediaAttachments.length ? 'l' : 'm'}