pl-fe: make quoted status collapsable
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
parent
da5fc0449c
commit
48f54cfc9d
3 changed files with 3 additions and 3 deletions
|
@ -71,7 +71,7 @@ const StatusContent: React.FC<IStatusContent> = React.memo(({
|
|||
const maybeSetCollapsed = (): void => {
|
||||
if (!node.current) return;
|
||||
|
||||
if (collapsable && onClick && !collapsed) {
|
||||
if (collapsable && !collapsed) {
|
||||
if (node.current.clientHeight > MAX_HEIGHT) {
|
||||
setCollapsed(true);
|
||||
}
|
||||
|
|
|
@ -181,7 +181,7 @@ const EventInformation: React.FC<IEventInformation> = ({ params }) => {
|
|||
<FormattedMessage id='event.description' defaultMessage='Description' />
|
||||
</Text>
|
||||
|
||||
<StatusContent status={status} collapsable={false} translatable />
|
||||
<StatusContent status={status} translatable />
|
||||
|
||||
<TranslateButton status={status} />
|
||||
</Stack>
|
||||
|
|
|
@ -48,7 +48,7 @@ const ScheduledStatus: React.FC<IScheduledStatus> = ({ statusId, ...other }) =>
|
|||
<Stack space={4}>
|
||||
<StatusContent
|
||||
status={status}
|
||||
collapsable
|
||||
collapsable={false}
|
||||
/>
|
||||
|
||||
{status.media_attachments.length > 0 && (
|
||||
|
|
Loading…
Reference in a new issue