From 3963cf2025cdb47efc7418980265ea8a724473af Mon Sep 17 00:00:00 2001 From: garethgeorge Date: Sat, 2 Dec 2023 14:44:53 -0800 Subject: [PATCH] fix: UI layout adjustments --- webui/src/views/AddPlanModal.tsx | 10 +++-- webui/src/views/AddRepoModal.tsx | 68 ++++++++++++++++++++------------ 2 files changed, 50 insertions(+), 28 deletions(-) diff --git a/webui/src/views/AddPlanModal.tsx b/webui/src/views/AddPlanModal.tsx index 511840b6..9f065746 100644 --- a/webui/src/views/AddPlanModal.tsx +++ b/webui/src/views/AddPlanModal.tsx @@ -272,7 +272,8 @@ export const AddPlanModal = ({ <> {fields.map((field, index) => ( @@ -299,7 +300,10 @@ export const AddPlanModal = ({ /> ))} - + , ]} > -
+ {/* Repo.id */} hasFeedback @@ -220,7 +228,7 @@ export const AddRepoModal = ({ hasFeedback name="uri" - label="Repository URI (e.g. ./local-path or s3://bucket-name/path)" + label="Repository URI" initialValue={template ? template.uri : ""} validateTrigger={["onChange", "onBlur"]} rules={[ @@ -235,12 +243,28 @@ export const AddRepoModal = ({ {/* Repo.password */} - - hasFeedback - name="password" - label={ - <> - Password{" "} + hasFeedback name="password" label={<>Password }> + + + + + + + - - } - initialValue={template && template.password} - validateTrigger={["onChange", "onBlur"]} - rules={[ - { - required: true, - message: "Please input repo name", - }, - ]} - > - + + {/* Repo.env */} @@ -283,7 +297,8 @@ export const AddRepoModal = ({ <> {fields.map((field, index) => ( @@ -316,7 +331,8 @@ export const AddRepoModal = ({ ))}