about summary refs log tree commit diff
path: root/src/view/com/posts/PostFeed.tsx
diff options
context:
space:
mode:
authorPaul Frazee <pfrazee@gmail.com>2024-12-31 09:44:52 -0800
committerGitHub <noreply@github.com>2024-12-31 09:44:52 -0800
commit2dc6932f298ce00bc83a66b7db0539eb7798e030 (patch)
tree4a21ec3237afb1c4123e5ed155869c92ba906369 /src/view/com/posts/PostFeed.tsx
parentc6d26a0a9c6606cccaee38adb535be257f19809d (diff)
downloadvoidsky-2dc6932f298ce00bc83a66b7db0539eb7798e030.tar.zst
Rework discover-feed trending interstitial (#7314)
* Rework discover-feed trending interstitial to take one row

* Fix loading state

* Try putting it at the top

* Color consistency

* Tweak some spacing

* Show trending when progress guide is there
Diffstat (limited to 'src/view/com/posts/PostFeed.tsx')
-rw-r--r--src/view/com/posts/PostFeed.tsx27
1 files changed, 13 insertions, 14 deletions
diff --git a/src/view/com/posts/PostFeed.tsx b/src/view/com/posts/PostFeed.tsx
index 7860d568d..f9b2e6e76 100644
--- a/src/view/com/posts/PostFeed.tsx
+++ b/src/view/com/posts/PostFeed.tsx
@@ -309,20 +309,19 @@ let PostFeed = ({
 
             if (hasSession) {
               if (feedKind === 'discover') {
-                if (sliceIndex === 0 && showProgressIntersitial) {
-                  arr.push({
-                    type: 'interstitialProgressGuide',
-                    key: 'interstitial-' + sliceIndex + '-' + lastFetchedAt,
-                  })
-                } else if (
-                  sliceIndex === 15 &&
-                  !gtTablet &&
-                  !trendingDisabled
-                ) {
-                  arr.push({
-                    type: 'interstitialTrending',
-                    key: 'interstitial-' + sliceIndex + '-' + lastFetchedAt,
-                  })
+                if (sliceIndex === 0) {
+                  if (showProgressIntersitial) {
+                    arr.push({
+                      type: 'interstitialProgressGuide',
+                      key: 'interstitial-' + sliceIndex + '-' + lastFetchedAt,
+                    })
+                  }
+                  if (!gtTablet && !trendingDisabled) {
+                    arr.push({
+                      type: 'interstitialTrending',
+                      key: 'interstitial2-' + sliceIndex + '-' + lastFetchedAt,
+                    })
+                  }
                 } else if (sliceIndex === 30) {
                   arr.push({
                     type: 'interstitialFollows',