mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-24 01:16:15 -04:00
修改登录页面中文,后台界面菜单宽度
This commit is contained in:
parent
0adb6085e3
commit
1efa72c403
3 changed files with 11 additions and 11 deletions
|
@ -91,7 +91,7 @@ export const App = ()=> {
|
|||
<div className="inner-menu">
|
||||
<span>
|
||||
<Crown width={40} height={40}/>
|
||||
<h1>Etherpad</h1>
|
||||
<h5>Etherpad</h5>
|
||||
</span>
|
||||
<ul>
|
||||
<li><NavLink to="/plugins"><Cable/><Trans i18nKey="admin_plugins"/></NavLink></li>
|
||||
|
|
|
@ -34,8 +34,8 @@ div.menu {
|
|||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
max-width: 20%;
|
||||
min-width: 20%;
|
||||
max-width: 15%;
|
||||
min-width: 10%;
|
||||
}
|
||||
|
||||
.icon-button{
|
||||
|
@ -422,7 +422,7 @@ pre {
|
|||
margin: 0;
|
||||
text-align: center;
|
||||
color: var(--etherpad-color);
|
||||
font-size: 4rem;
|
||||
font-size: 2rem;
|
||||
font-weight: 1000;
|
||||
}
|
||||
|
||||
|
|
|
@ -27,7 +27,7 @@ export const LoginScreen = ()=>{
|
|||
if(!r.ok) {
|
||||
useStore.getState().setToastState({
|
||||
open: true,
|
||||
title: "Login failed",
|
||||
title: "登录失败",
|
||||
success: false
|
||||
})
|
||||
} else {
|
||||
|
@ -40,21 +40,21 @@ export const LoginScreen = ()=>{
|
|||
|
||||
return <div className="login-background login-page">
|
||||
<div className="login-box login-form">
|
||||
<h1 className="login-title">Etherpad</h1>
|
||||
<h6 className="login-title">管理后台</h6>
|
||||
<form className="login-inner-box input-control" onSubmit={handleSubmit(login)}>
|
||||
<div>Username</div>
|
||||
{/* <div>用户名称</div> */}
|
||||
<input {...register('username', {
|
||||
required: true
|
||||
})} className="login-textinput input-control" type="text" placeholder="Username"/>
|
||||
<div>Password</div>
|
||||
})} className="login-textinput input-control" type="text" placeholder="请输入登录名称"/>
|
||||
{/* <div>用户密码</div> */}
|
||||
<span className="icon-input">
|
||||
<input {...register('password', {
|
||||
required: true
|
||||
})} className="login-textinput" type={passwordVisible?"text":"password"} placeholder="Password"/>
|
||||
})} className="login-textinput" type={passwordVisible?"text":"password"} placeholder="请输入登录密码"/>
|
||||
{passwordVisible? <Eye onClick={()=>setPasswordVisible(!passwordVisible)}/> :
|
||||
<EyeOff onClick={()=>setPasswordVisible(!passwordVisible)}/>}
|
||||
</span>
|
||||
<input type="submit" value="Login" className="login-button"/>
|
||||
<input type="submit" value="系统登录" className="login-button"/>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue