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 &&
!sensitive &&
!spoilerText &&
(size === 'l' ||
(size === 'm' && !poll && !mediaAttachments.length)) && (
!poll &&
!mediaAttachments.length && (
<Card
card={card}
size={!poll && !mediaAttachments.length ? 'l' : 'm'}