diff --git a/src/components/FigmaBanner.tsx b/src/components/FigmaBanner.tsx index bc044ba..f0925a1 100644 --- a/src/components/FigmaBanner.tsx +++ b/src/components/FigmaBanner.tsx @@ -301,7 +301,7 @@ export function FigmaBanner() { ) : null; return ( -
+
{isDownloading ? ( - + ) : ( - + )} ) : null} @@ -224,7 +224,7 @@ export function PopularRankList({ const placeholderCount = Math.max(0, MAX_ITEMS - items.length); return ( -
+
{items.map((post, index) => (
@@ -667,14 +667,6 @@ export function PublicLayout() { > {t("latest")} - setOpen(false)} - > - {t("popular")} - {t("favorites")} + setOpen(false)} + > + {t("popular")} +
) : null} diff --git a/src/pages/Home/index.tsx b/src/pages/Home/index.tsx index fc44514..97488cc 100644 --- a/src/pages/Home/index.tsx +++ b/src/pages/Home/index.tsx @@ -221,6 +221,9 @@ export function Home() { Math.round(recScroll.progress * (recommendedDotCount - 1)), ) : 0; + // Hide the arrow that points to an edge we're already at. + const recAtStart = recScroll.progress <= 0.01; + const recAtEnd = recScroll.progress >= 0.99; if (err) { return ( @@ -333,14 +336,15 @@ export function Home() {
-
- -
-
+
+
+ +
+
))}
- {canScrollRec ? ( - <> - - - + {canScrollRec && !recAtStart ? ( + ) : null} + {canScrollRec && !recAtEnd ? ( + + ) : null} +