An open source design system that's fully customizable and agent ready
TypeScript
fix(docsite): wrap changelog tabs in Carousel for overflow (#1983)
Cindy Zhang5ad7f08ede69
diff --git a/apps/docsite/src/components/ChangelogView.tsx b/apps/docsite/src/components/ChangelogView.tsxindex 2616d544b5..c7373a4755 100644--- a/apps/docsite/src/components/ChangelogView.tsx+++ b/apps/docsite/src/components/ChangelogView.tsx@@ -7,6 +7,7 @@ import {XDSText, XDSHeading} from '@xds/core/Text';import {XDSVStack} from '@xds/core/Layout';import {XDSSection} from '@xds/core/Section';import {XDSTabList, XDSTab} from '@xds/core/TabList';+import {XDSCarousel} from '@xds/core/Carousel';import {GITHUB_REPO} from '../constants';function linkifyPRs(markdown: string): string {@@ -77,9 +78,11 @@ export function ChangelogView({{changelogs.length > 0 ? (<><XDSTabList value={activeTab} onChange={setActiveTab} hasDivider>- {changelogs.map(c => (- <XDSTab key={c.pkg} value={c.pkg} label={c.pkg} />- ))}+ <XDSCarousel gap={0.5} hasSnap={false}>+ {changelogs.map(c => (+ <XDSTab key={c.pkg} value={c.pkg} label={c.pkg} />+ ))}+ </XDSCarousel></XDSTabList>{active != null && (