diff --git a/frontend/app/src/components/AuthModal.tsx b/frontend/app/src/components/AuthModal.tsx index 616dea6..4e605ee 100644 --- a/frontend/app/src/components/AuthModal.tsx +++ b/frontend/app/src/components/AuthModal.tsx @@ -52,6 +52,7 @@ const AuthModal = (props: { .then(() => props.setOpen(false)) .then(() => navigate("/dashboard")) .catch(() => messageApi.error(tr("Login failed!"))); + loginForm.resetFields(); }; const submitRegisterForm = (formData: { @@ -94,12 +95,18 @@ const AuthModal = (props: { spinning={isLoggingIn || isRegistering} indicator={} > - setCurrent(e.key)} - mode="horizontal" - selectedKeys={[current]} - items={items} - /> +
+ setCurrent(e.key)} + mode="horizontal" + selectedKeys={[current]} + items={items} + style={{ width: "fit-content" }} + disabledOverflow={true} + /> +

{current === "register" ? (