Skip to content

Commit 32ed12f

Browse files
committed
Change mobile device width and post count in related post
1 parent 5ad32b9 commit 32ed12f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/containers/post/RelatedPost.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ function RelatedPost({ type }: RelatedPostProps) {
1010
const [visible, setVisible] = useState(true);
1111
useEffect(() => {
1212
const width = window.innerWidth;
13-
if (type === 'desktop' && width < 468) {
13+
if (type === 'desktop' && width < 768) {
1414
setVisible(false);
1515
return;
1616
}
17-
if (type === 'mobile' && width >= 468) {
17+
if (type === 'mobile' && width >= 768) {
1818
setVisible(false);
1919
return;
2020
}
@@ -56,7 +56,7 @@ function RelatedPost({ type }: RelatedPostProps) {
5656
data-ad-client="ca-pub-5574866530496701"
5757
data-ad-slot="4990574169"
5858
data-matched-content-ui-type="image_stacked"
59-
data-matched-content-rows-num="4"
59+
data-matched-content-rows-num="6"
6060
data-matched-content-columns-num="1"
6161
></ins>
6262
)}

0 commit comments

Comments
 (0)