Ad: change to 'insert' mode in Mobile layout.

## Ticket
1074
In mobile, the second livestream tile in Following gets missing because of the Ad being in 'replace' mode.

## Change
Switch from 'replace' to 'insert' mode in Mobile layout.

If missing (replaced) tiles is not a desired behavior, the true fix would be to always use 'insert' mode, and either live with the uneven tiles or wait for our design master's solution.
This commit is contained in:
infinite-persistence 2022-04-19 22:01:12 +08:00 committed by Thomas Zarebczan
parent 805b607e73
commit 07463312f0

View file

@ -169,7 +169,7 @@ function HomePage(props: Props) {
injectedItem={ injectedItem={
index === 0 && { index === 0 && {
node: <Ads small type="video" tileLayout />, node: <Ads small type="video" tileLayout />,
replace: adBlockerFound === false, replace: adBlockerFound === false && isLargeScreen,
} }
} }
forceShowReposts={id !== 'FOLLOWING'} forceShowReposts={id !== 'FOLLOWING'}