0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2025-02-17 22:04:19 -05:00

chore: update custom css render delay to 400ms (#3429)

This commit is contained in:
Darcy Ye 2023-03-15 19:40:04 +08:00 committed by GitHub
parent 0666f8bb71
commit 9d4c251a78
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View file

@ -10,7 +10,7 @@ const usePreviewConfigs = (
formData: SignInExperienceForm,
isDirty: boolean,
data?: SignInExperience,
timeDelay = 2000 // Render the preview after the user stops typing in the custom CSS editing box for two seconds.
timeDelay = 400 // Render the preview after the user stops typing in the custom CSS editing box for two seconds.
) => {
const debounce = useDebounce(timeDelay);
const { customCss, ...restFormData } = formData;

View file

@ -46,7 +46,7 @@ const sign_in_exp = {
css_code_editor_description: '查看自定义 CSS 的例子。 <a>{{link}}</a>',
css_code_editor_description_link_content: '了解更多',
css_code_editor_content_placeholder:
'// 输入自定义CSS代码从颜色、字体、组件样式和布局等定制你的登录、注册、忘记密码和其他页面。充分发挥创造力让你的用户界面脱颖而出。',
'// 输入自定义 CSS 代码,从颜色、字体、组件样式和布局等,定制你的登录、注册、忘记密码和其他页面。充分发挥创造力,让你的用户界面脱颖而出。',
},
sign_up_and_sign_in: {
identifiers_email: '邮件地址',