An open source design system that's fully customizable and agent ready
TypeScript
fix(templates): use Layout contentWidth in settings template instead of custom CSS (#2998)
rubyycheung05cdc6437dd8
diff --git a/packages/cli/templates/pages/settings/page.tsx b/packages/cli/templates/pages/settings/page.tsxindex bbc9c9defe..8e8166fa10 100644--- a/packages/cli/templates/pages/settings/page.tsx+++ b/packages/cli/templates/pages/settings/page.tsx@@ -22,20 +22,9 @@ import {Button} from '@xds/core/Button';import {Divider} from '@xds/core/Divider';import {CheckboxInput} from '@xds/core/CheckboxInput';import {Typeahead} from '@xds/core/Typeahead';-import * as stylex from '@stylexjs/stylex';import {MagnifyingGlassIcon} from '@heroicons/react/24/outline';import type {SearchableItem, SearchSource} from '@xds/core/Typeahead';-// Caps + centers the whole layout shell (header + sidebar + content). Layout-// has no max-width prop for the outer shell — contentWidth only caps slot-// content, not the sidebar/header. Tracked in #2625.-const styles = stylex.create({- constrainedShell: {- maxWidth: 1440,- marginInline: 'auto',- },-});-const NAV_ITEMS = ['Profile','Account',@@ -77,14 +66,12 @@ export default function SettingsTemplate() {const [dataExport, setDataExport] = useState(false);const [adminMembers, setAdminMembers] = useState(false);const [twoFactor, setTwoFactor] = useState(false);- const [searchValue, setSearchValue] = useState<SearchableItem | null>(- null,- );+ const [searchValue, setSearchValue] = useState<SearchableItem | null>(null);return (<Layoutheight="auto"- xstyle={styles.constrainedShell}+ contentWidth={1440}header={<LayoutHeader hasDivider><HStack vAlign="center">