Fix status style regressions

This commit is contained in:
Alex Gleason
2022-08-22 12:11:01 -04:00
parent 6e5689e3a3
commit cddf70f0ab
6 changed files with 13 additions and 9 deletions

View File

@@ -237,7 +237,7 @@ const Status: React.FC<IStatus> = (props) => {
);
reblogElementMobile = (
<div className='sm:hidden truncate'>
<div className='pb-5 -mt-2 sm:hidden truncate'>
<NavLink
to={`/@${status.getIn(['account', 'acct'])}`}
onClick={(event) => event.stopPropagation()}
@@ -325,6 +325,7 @@ const Status: React.FC<IStatus> = (props) => {
<Card
variant={variant}
className={classNames('status__wrapper', `status-${actualStatus.visibility}`, {
'py-6 sm:p-5': variant === 'rounded',
'status-reply': !!status.in_reply_to_id,
muted,
read: unread === false,

View File

@@ -33,7 +33,6 @@ const Card = React.forwardRef<HTMLDivElement, ICard>(({ children, variant = 'def
ref={ref}
{...filteredProps}
className={classNames({
'space-y-4': true,
'bg-white dark:bg-primary-900 text-gray-900 dark:text-gray-100 shadow-lg dark:shadow-none overflow-hidden': variant === 'rounded',
[sizes[size]]: variant === 'rounded',
}, className)}