This commit is contained in:
Violet Caulfield
2024-11-23 21:43:15 -06:00
parent 4f6405aaf0
commit 25d35d9034
3 changed files with 4 additions and 2 deletions

View File

@@ -77,6 +77,7 @@ export default function ServerAddress(): React.JSX.Element {
value={serverAddress}
placeholder="jellyfin.org"
onChangeText={setServerAddress}
flexGrow
/>
</XStack>

View File

@@ -56,7 +56,7 @@ export default function ServerAuthentication(): React.JSX.Element {
Switch Server
</Button>
<YStack flex={1}>
<YStack>
<Input
placeholder="Username"
value={username}

View File

@@ -7,6 +7,7 @@ interface InputProps {
placeholder: string
value: string | undefined;
secureTextEntry?: boolean | undefined;
flexGrow?: boolean | undefined
}
export default function Input(props: InputProps): React.JSX.Element {
@@ -16,7 +17,7 @@ export default function Input(props: InputProps): React.JSX.Element {
placeholder={props.placeholder}
onChangeText={props.onChangeText}
value={props.value}
flexGrow={1}
flexGrow={props.flexGrow ? 1 : "unset"}
secureTextEntry={props.secureTextEntry}
/>
)