This commit is contained in:
Violet Caulfield
2024-11-23 21:02:34 -06:00
parent 4d0ba64104
commit 5aa71a5b7d
2 changed files with 5 additions and 5 deletions

View File

@@ -61,7 +61,7 @@ export default function ServerAddress(): React.JSX.Element {
<Heading>
Connect to Jellyfin
</Heading>
<XStack fullscreen>
<XStack flex={3} gap="$2">
<SwitchWithLabel
checked={useHttps}
onCheckedChange={(checked) => setUseHttps(checked)}
@@ -70,13 +70,11 @@ export default function ServerAddress(): React.JSX.Element {
width={100}
/>
<Spacer />
<Input
value={serverAddress}
placeholder="jellyfin.org"
onChangeText={setServerAddress}
flex={2}
/>
</XStack>

View File

@@ -7,7 +7,8 @@ interface InputProps {
placeholder: string
value: string | undefined;
secureTextEntry?: boolean | undefined;
width?: number | undefined
width?: number | undefined;
flex?: number | "unset" | undefined;
}
export default function Input(props: InputProps): React.JSX.Element {
@@ -18,6 +19,7 @@ export default function Input(props: InputProps): React.JSX.Element {
onChangeText={props.onChangeText}
value={props.value}
width={props.width}
flex={props.flex}
secureTextEntry={props.secureTextEntry}
/>
)