mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-02-18 00:01:55 +03:00
Disable card if there's a poll or media attachment
Regardless of the size
This commit is contained in:
parent
a4b452e177
commit
599d81f924
1 changed files with 2 additions and 2 deletions
|
@ -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'}
|
||||
|
|
Loading…
Add table
Reference in a new issue