diff --git a/packages/shared/src/components/post/BasePostContent.tsx b/packages/shared/src/components/post/BasePostContent.tsx
index 60c86a085a..e4aced44b1 100644
--- a/packages/shared/src/components/post/BasePostContent.tsx
+++ b/packages/shared/src/components/post/BasePostContent.tsx
@@ -39,6 +39,7 @@ export function BasePostContent({
{isPostPage ? (
) : (
diff --git a/packages/shared/src/components/post/PostContentHeaderMobile.tsx b/packages/shared/src/components/post/PostContentHeaderMobile.tsx
index a409cd1452..5b07beae96 100644
--- a/packages/shared/src/components/post/PostContentHeaderMobile.tsx
+++ b/packages/shared/src/components/post/PostContentHeaderMobile.tsx
@@ -1,15 +1,19 @@
import React, { ReactElement } from 'react';
import { useRouter } from 'next/router';
+import classNames from 'classnames';
import { Button, ButtonSize, ButtonVariant } from '../buttons/Button';
import { ArrowIcon } from '../icons';
import { PostHeaderActions } from './PostHeaderActions';
import { PostNavigationProps } from './common';
import { isNullOrUndefined } from '../../lib/func';
+import { WithClassNameProps } from '../utilities';
export function PostContentHeaderMobile({
post,
+ className,
onReadArticle,
-}: Pick): ReactElement {
+}: Pick &
+ WithClassNameProps): ReactElement {
const router = useRouter();
const canGoBack =
!!globalThis?.history?.length &&
@@ -18,7 +22,12 @@ export function PostContentHeaderMobile({
!globalThis?.document?.referrer; // empty referrer means you are from the same site
return (
-
+
}
size={ButtonSize.Small}
diff --git a/packages/shared/src/components/post/SquadPostContent.tsx b/packages/shared/src/components/post/SquadPostContent.tsx
index 9dbadbe9e7..c796fce50e 100644
--- a/packages/shared/src/components/post/SquadPostContent.tsx
+++ b/packages/shared/src/components/post/SquadPostContent.tsx
@@ -86,7 +86,6 @@ function SquadPostContent({
className={classNames(
'relative flex-1 flex-col tablet:flex-row tablet:pb-0',
className?.container,
- isPostPage && 'pt-6 tablet:pt-0',
)}
hasNavigation={hasNavigation}
>
@@ -100,6 +99,7 @@ function SquadPostContent({
className={{
...className,
onboarding: classNames('mb-6', className?.onboarding),
+ header: 'mb-6',
navigation: {
actions: 'ml-auto tablet:hidden',
container: 'mb-6 pt-6',
diff --git a/packages/shared/src/components/post/common.tsx b/packages/shared/src/components/post/common.tsx
index e49b75075a..605bafed3e 100644
--- a/packages/shared/src/components/post/common.tsx
+++ b/packages/shared/src/components/post/common.tsx
@@ -20,6 +20,7 @@ export interface PostContentClassName {
onboarding?: string;
navigation?: PostNavigationClassName;
fixedNavigation?: PostNavigationClassName;
+ header?: string;
}
type PostActions = Pick<