@@ -20,7 +20,10 @@ import { InputGroup } from "~/components/primitives/InputGroup";
2020import { Label } from "~/components/primitives/Label" ;
2121import { Switch } from "~/components/primitives/Switch" ;
2222import { NavBar , PageTitle } from "~/components/primitives/PageHeader" ;
23- import { Paragraph } from "~/components/primitives/Paragraph" ;
23+ import {
24+ SETTINGS_ROW_TITLE_GAP ,
25+ SettingsRowDescription ,
26+ } from "~/components/primitives/SettingsLayout" ;
2427import { CUSTOMIZE_SIDEBAR_PARAM } from "~/components/navigation/sideMenuTypes" ;
2528import { ALL_THEME_OPTIONS , THEME_OPTIONS_BY_VALUE } from "~/components/themeOptions" ;
2629import { prisma } from "~/db.server" ;
@@ -44,6 +47,7 @@ import { requireUser, requireUserId } from "~/services/session.server";
4447import { emailSchema , MAX_EMAIL_LENGTH } from "~/utils/emailValidation" ;
4548import { accountPath , v3EnvironmentPath } from "~/utils/pathBuilder" ;
4649import { pageMeta } from "~/utils/pageTitle" ;
50+ import { cn } from "~/utils/cn" ;
4751
4852export const meta = pageMeta ( "Your profile" ) ;
4953
@@ -345,12 +349,12 @@ export default function Page() {
345349 { customizeSidebarPath && (
346350 < div className = "flex min-h-16 w-full items-center border-b border-grid-dimmed" >
347351 < div className = "flex w-full items-center justify-between gap-4" >
348- < InputGroup className = "flex-1" >
352+ < div className = { cn ( "flex-1" , SETTINGS_ROW_TITLE_GAP ) } >
349353 < Label > App sidebar</ Label >
350- < Paragraph variant = "small" >
354+ < SettingsRowDescription >
351355 Customize sidebar item visibility, order and rename favorites
352- </ Paragraph >
353- </ InputGroup >
356+ </ SettingsRowDescription >
357+ </ div >
354358 < div className = "flex flex-none items-center" >
355359 < LinkButton to = { customizeSidebarPath } variant = "secondary/small" >
356360 Customize
@@ -361,10 +365,12 @@ export default function Page() {
361365 ) }
362366 < div className = "flex min-h-16 w-full items-center border-b border-grid-dimmed" >
363367 < div className = "flex w-full items-center justify-between gap-4" >
364- < InputGroup className = "flex-1" >
368+ < div className = { cn ( "flex-1" , SETTINGS_ROW_TITLE_GAP ) } >
365369 < Label > Interface theme</ Label >
366- < Paragraph variant = "small" > Choose your interface color scheme</ Paragraph >
367- </ InputGroup >
370+ < SettingsRowDescription >
371+ Choose your interface color scheme
372+ </ SettingsRowDescription >
373+ </ div >
368374 < div className = "flex flex-none items-center" >
369375 < Select < ThemePreference , ThemePreference >
370376 aria-label = "Interface theme"
@@ -410,10 +416,10 @@ export default function Page() {
410416 { theme !== "classic" && (
411417 < div className = "flex min-h-16 w-full items-center border-b border-grid-dimmed" >
412418 < div className = "flex w-full items-center justify-between gap-4" >
413- < InputGroup className = "flex-1" >
419+ < div className = { cn ( "flex-1" , SETTINGS_ROW_TITLE_GAP ) } >
414420 < Label > Contrast</ Label >
415- < Paragraph variant = "small" > Adjust the interface contrast</ Paragraph >
416- </ InputGroup >
421+ < SettingsRowDescription > Adjust the interface contrast</ SettingsRowDescription >
422+ </ div >
417423 < div className = "flex flex-none items-center" >
418424 < Slider
419425 variant = "settings"
@@ -445,9 +451,12 @@ export default function Page() {
445451 ) }
446452 < div className = "flex min-h-16 w-full items-center border-b border-grid-dimmed" >
447453 < div className = "flex w-full items-center justify-between gap-4" >
448- < InputGroup className = "flex-1" >
454+ < div className = { cn ( "flex-1" , SETTINGS_ROW_TITLE_GAP ) } >
449455 < Label > Icon contrast</ Label >
450- </ InputGroup >
456+ < SettingsRowDescription >
457+ Increase the contrast of icons and badges
458+ </ SettingsRowDescription >
459+ </ div >
451460 < div className = "flex flex-none items-center" >
452461 < Switch
453462 variant = "medium"
0 commit comments