diff --git a/app/soapbox/components/ui/card/card.tsx b/app/soapbox/components/ui/card/card.tsx index c876219f4..f60ec2ac8 100644 --- a/app/soapbox/components/ui/card/card.tsx +++ b/app/soapbox/components/ui/card/card.tsx @@ -35,7 +35,7 @@ const Card = React.forwardRef(({ children, variant, size className={classNames({ 'space-y-4': true, 'bg-white dark:bg-slate-800 text-black dark:text-white shadow-lg dark:shadow-inset overflow-hidden': variant === 'rounded', - [sizes[size]]: true, + [sizes[size]]: variant === 'rounded', }, className)} > {children} diff --git a/app/soapbox/components/ui/column/column.tsx b/app/soapbox/components/ui/column/column.tsx index 5ac4f350e..30c43f7f0 100644 --- a/app/soapbox/components/ui/column/column.tsx +++ b/app/soapbox/components/ui/column/column.tsx @@ -40,25 +40,19 @@ const Column: React.FC = React.forwardRef((props, ref: React.ForwardedR } }; - const renderChildren = () => { - if (transparent) { - return
{children}
; - } + const renderChildren = () => ( + + {withHeader ? ( + + + + ) : null} - return ( - - {withHeader ? ( - - - - ) : null} - - - {children} - - - ); - }; + + {children} + + + ); return (
diff --git a/app/soapbox/features/bookmarks/index.tsx b/app/soapbox/features/bookmarks/index.tsx index c9e3e5de3..8eb1c0bd3 100644 --- a/app/soapbox/features/bookmarks/index.tsx +++ b/app/soapbox/features/bookmarks/index.tsx @@ -35,7 +35,7 @@ const Bookmarks: React.FC = () => { const emptyMessage = ; return ( - +
diff --git a/app/soapbox/features/community_timeline/index.tsx b/app/soapbox/features/community_timeline/index.tsx index 4cc9ad65e..81730af40 100644 --- a/app/soapbox/features/community_timeline/index.tsx +++ b/app/soapbox/features/community_timeline/index.tsx @@ -42,7 +42,7 @@ const CommunityTimeline = () => { }, [onlyMedia]); return ( - + { }; return ( - + + + + { }, [isPartial]); return ( - + { ); return ( - + {/*