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 = ({
/>
))}
-
+
{elem}
diff --git a/webui/src/views/AddRepoModal.tsx b/webui/src/views/AddRepoModal.tsx
index cff60546..8cf1a7ed 100644
--- a/webui/src/views/AddRepoModal.tsx
+++ b/webui/src/views/AddRepoModal.tsx
@@ -6,6 +6,8 @@ import {
AutoComplete,
Tooltip,
Button,
+ Row,
+ Col,
} from "antd";
import React, { useState } from "react";
import { useShowModal } from "../components/ModalManager";
@@ -137,6 +139,7 @@ export const AddRepoModal = ({
open={true}
onCancel={handleCancel}
title={template ? "Edit Restic Repository" : "Add Restic Repository"}
+ width="40vw"
footer={[
,
]}
>
-
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 = ({
))}