1
- import { Separator , XStack , YStack } from '@my/ui'
1
+ import { Card , Separator , XStack , YStack } from '@my/ui'
2
2
import { SettingsLinks } from './SettingsLinks'
3
3
4
4
export type SettingsLayoutProps = {
@@ -14,29 +14,32 @@ export type SettingsLayoutProps = {
14
14
15
15
export const SettingsLayout = ( { children } : SettingsLayoutProps ) => {
16
16
return (
17
- < XStack f = { 1 } pt = { '$4' } >
18
- < YStack
19
- // this file is web-only so we can safely use CSS
20
- style = { {
21
- transition : '200ms ease width' ,
22
- } }
23
- width = "$14"
24
- display = "none"
25
- $gtLg = { { display : 'flex' } }
26
- py = { '$4' }
27
- >
28
- < YStack width = { '100%' } gap = { '$4' } >
29
- < YStack jc = { 'space-between' } zIndex = { 4 } flex = { 1 } width = { '100%' } >
30
- < YStack h = { 'inherit' } gap = { '$6' } width = { '100%' } >
31
- < SettingsLinks />
17
+ < YStack pb = { '$size.3.5' } f = { 1 } pt = { '$size.0.9' } $gtLg = { { pt : 0 } } >
18
+ < Card width = { '100%' } p = { '$size.3.5' } >
19
+ < XStack f = { 1 } >
20
+ < YStack
21
+ // this file is web-only so we can safely use CSS
22
+ style = { {
23
+ transition : '200ms ease width' ,
24
+ } }
25
+ width = "$size.16"
26
+ display = "none"
27
+ $gtLg = { { display : 'flex' } }
28
+ >
29
+ < YStack width = { '100%' } gap = { '$4' } >
30
+ < YStack jc = { 'space-between' } zIndex = { 4 } flex = { 1 } width = { '100%' } >
31
+ < YStack h = { 'inherit' } gap = { '$size.1.5' } width = { '100%' } >
32
+ < SettingsLinks />
33
+ </ YStack >
34
+ </ YStack >
32
35
</ YStack >
33
36
</ YStack >
34
- </ YStack >
35
- </ YStack >
36
- < Separator display = "none" $gtLg = { { display : 'flex' } } vertical / >
37
- < YStack f = { 1 } ai = "center" $gtLg = { { ml : '$8' } } >
38
- < YStack width = "100%" > { children } </ YStack >
39
- </ YStack >
40
- </ XStack >
37
+ < Separator display = "none" $gtLg = { { display : 'flex' } } vertical / >
38
+ < YStack f = { 1 } ai = "center" $gtLg = { { ml : '$size.8' } } >
39
+ < YStack width = "100%" > { children } </ YStack >
40
+ </ YStack >
41
+ </ XStack >
42
+ </ Card >
43
+ </ YStack >
41
44
)
42
45
}
0 commit comments