{def(
@@ -134,7 +136,7 @@ export const BgSvg = () => {
)}
{def(
@@ -144,7 +146,7 @@ export const BgSvg = () => {
)}
{def(
diff --git a/web/src/pages/login-next/index.less b/web/src/pages/login-next/index.less
index 7c52f360a..e25358d29 100644
--- a/web/src/pages/login-next/index.less
+++ b/web/src/pages/login-next/index.less
@@ -1,6 +1,3 @@
-.animate-glow {
- animation: glow 16s infinite linear;
-}
.mask-path {
stroke-width: 8;
::after {
@@ -34,11 +31,20 @@
stroke-dashoffset: -600;
} /* 15+300-30=285 */
}
-
+.animate-glow {
+ animation: glow 16s infinite linear;
+}
.animate-highlight {
animation: highlight-flow 16s linear infinite;
}
+.paused {
+ .animate-glow,
+ .animate-highlight {
+ animation-play-state: paused;
+ }
+}
+
//////////////////////////////////////////////////////////////////////////
.perspective-1000 {
perspective: 1000px;
@@ -47,11 +53,13 @@
min-height: 680px;
display: flex;
align-items: center;
+ will-change: transform;
}
.transform-style-3d {
transform-style: preserve-3d;
-webkit-transform-style: preserve-3d;
transition-duration: 0.4s;
+ will-change: transform;
}
.backface-hidden {
backface-visibility: hidden;
diff --git a/web/src/pages/login-next/index.tsx b/web/src/pages/login-next/index.tsx
index c9354225f..1db5e7fbf 100644
--- a/web/src/pages/login-next/index.tsx
+++ b/web/src/pages/login-next/index.tsx
@@ -42,7 +42,9 @@ const Login = () => {
useLoginWithChannel();
const { t } = useTranslation('translation', { keyPrefix: 'login' });
const [isLoginPage, setIsLoginPage] = useState(true);
- const [showPassword, setShowPassword] = useState(false);
+
+ const [isUserInteracting, setIsUserInteracting] = useState(true);
+
const loading =
signLoading ||
registerLoading ||
@@ -152,9 +154,8 @@ const Login = () => {
color={'rgb(128, 255, 248)'}
/>
-
+
- {/*
*/}
@@ -237,7 +238,7 @@ const Login = () => {
(
+ render: (fieldProps: any) => (
{
value={value}
options={options}
onChange={(value) => handleFieldChange(id, value)}
- placeholder={tcommon('selectPlaceholder')}
+ placeholder={t('selectModelPlaceholder')}
/>
);
diff --git a/web/src/pages/user-setting/setting-model/components/un-add-model.tsx b/web/src/pages/user-setting/setting-model/components/un-add-model.tsx
index 3d8b1d5e2..88897ce83 100644
--- a/web/src/pages/user-setting/setting-model/components/un-add-model.tsx
+++ b/web/src/pages/user-setting/setting-model/components/un-add-model.tsx
@@ -123,16 +123,14 @@ export const AvailableModels: FC<{
handleAddModel(model.name)}
>
{model.name}
-