Don't use flex on inputs (#5458)

This commit is contained in:
Eric Bailey
2024-09-23 16:34:59 -05:00
committed by GitHub
parent e1ee95a719
commit e93cbbd56a
4 changed files with 40 additions and 17 deletions
+21
View File
@@ -32,6 +32,27 @@ export function Forms() {
label="Text field"
/>
<View style={[a.flex_row, a.gap_sm]}>
<View
style={[
{
width: '50%',
},
]}>
<TextField.Root>
<TextField.Icon icon={Globe} />
<TextField.Input
value={value}
onChangeText={setValue}
label="Text field"
/>
</TextField.Root>
</View>
<Button label="Submit" size="large" variant="solid" color="primary">
<ButtonText>Submit</ButtonText>
</Button>
</View>
<TextField.Root>
<TextField.Icon icon={Globe} />
<TextField.Input
+5 -5
View File
@@ -1,10 +1,10 @@
import React from 'react'
import {ScrollView, View} from 'react-native'
import {isWeb} from '#/platform/detection'
import {useSetThemePrefs} from '#/state/shell'
import {isWeb} from 'platform/detection'
import {CenteredView} from '#/view/com/util/Views'
import {ListContained} from 'view/screens/Storybook/ListContained'
import {ListContained} from '#/view/screens/Storybook/ListContained'
import {atoms as a, ThemeProvider, useTheme} from '#/alf'
import {Button, ButtonText} from '#/components/Button'
import {Breakpoints} from './Breakpoints'
@@ -80,9 +80,8 @@ function StorybookInner() {
</Button>
</View>
<Buttons />
<Forms />
<Dialogs />
<ThemeProvider theme="light">
<Theming />
</ThemeProvider>
@@ -93,16 +92,17 @@ function StorybookInner() {
<Theming />
</ThemeProvider>
<Buttons />
<Typography />
<Spacing />
<Shadows />
<Buttons />
<Icons />
<Links />
<Forms />
<Dialogs />
<Menus />
<Breakpoints />
<Dialogs />
<Button
variant="solid"