Skip to content

Commit

Permalink
fix: spacing on my feed actions when reading streaks exists
Browse files Browse the repository at this point in the history
  • Loading branch information
DragosIorgulescu committed Mar 27, 2024
1 parent 418181e commit 63ad9d8
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion packages/shared/src/components/feeds/FeedContainer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import ConditionalWrapper from '../ConditionalWrapper';
import { SharedFeedPage } from '../utilities';
import { useActiveFeedNameContext } from '../../contexts';
import { useMobileUxExperiment } from '../../hooks/useMobileUxExperiment';
import { useReadingStreak } from '../../hooks/streaks';

export interface FeedContainerProps {
children: ReactNode;
Expand Down Expand Up @@ -108,6 +109,7 @@ export const FeedContainer = ({
} = useContext(SettingsContext);
const { shouldUseMobileFeedLayout } = useFeedLayout();
const { isNewMobileLayout } = useMobileUxExperiment();
const { isEnabled: isStreaksEnabled } = useReadingStreak();
const { feedName } = useActiveFeedNameContext();
const router = useRouter();
const numCards = currentSettings.numCards[spaciness ?? 'eco'];
Expand Down Expand Up @@ -151,7 +153,12 @@ export const FeedContainer = ({
{isSearch && !shouldUseMobileFeedLayout && (
<span className="flex flex-1 flex-row items-center">
{!!actionButtons && (
<span className="mr-auto flex w-full flex-row gap-3 border-theme-divider-tertiary pr-3">
<span
className={classNames(
'mr-auto flex flex-row gap-3 border-theme-divider-tertiary pr-3',
isNewMobileLayout && isStreaksEnabled && 'w-full',
)}
>
{actionButtons}
</span>
)}
Expand Down

0 comments on commit 63ad9d8

Please sign in to comment.