We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0973728 commit da29047Copy full SHA for da29047
src/components/learn-aggregator/index.tsx
@@ -83,13 +83,16 @@ export function TeaserSection({
83
)
84
})}
85
</ul>
86
- <Button
87
- className="mt-4 w-full lg:mt-8"
88
- variant="secondary"
89
- onClick={() => showMore(s => !s)}
90
- >
91
- Show {!showingMore ? "more" : "less"}
92
- </Button>
+ {!showingMore && (
+ <Button
+ className="mt-4 w-full lg:mt-8"
+ variant="secondary"
+ onClick={() => showMore(true)}
+ >
+ {/* we don't display "Show less" because scroll restoriation is not worth the effort, and the user already scrolled to the next section */}
93
+ Show more
94
+ </Button>
95
+ )}
96
</div>
97
</section>
98
0 commit comments