diff options
Diffstat (limited to 'src/components/forms/ToggleButton.tsx')
-rw-r--r-- | src/components/forms/ToggleButton.tsx | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/components/forms/ToggleButton.tsx b/src/components/forms/ToggleButton.tsx index 615fedae8..5cd51d794 100644 --- a/src/components/forms/ToggleButton.tsx +++ b/src/components/forms/ToggleButton.tsx @@ -20,6 +20,7 @@ export function Group({children, multiple, ...props}: GroupProps) { <Toggle.Group type={multiple ? 'checkbox' : 'radio'} {...props}> <View style={[ + a.w_full, a.flex_row, a.border, a.rounded_sm, @@ -34,7 +35,7 @@ export function Group({children, multiple, ...props}: GroupProps) { export function Button({children, ...props}: ItemProps) { return ( - <Toggle.Item {...props}> + <Toggle.Item {...props} style={[a.flex_grow]}> <ButtonInner>{children}</ButtonInner> </Toggle.Item> ) @@ -95,11 +96,12 @@ function ButtonInner({children}: React.PropsWithChildren<{}>) { borderLeftWidth: 1, marginLeft: -1, }, - a.px_lg, + a.flex_grow, a.py_md, native({ - paddingTop: 14, + paddingBottom: 10, }), + a.px_sm, t.atoms.bg, t.atoms.border, baseStyles, |