fix(style): unify styles

This commit is contained in:
hexxa 2021-10-07 17:00:22 +08:00 committed by Hexxa
parent fedd3e6de1
commit 2a651d877e
2 changed files with 35 additions and 19 deletions

View file

@ -655,7 +655,6 @@ export class Browser extends React.Component<Props, State, {}> {
<span className={`padding-m ${showOp}`}> <span className={`padding-m ${showOp}`}>
<button <button
onClick={() => this.selectAll()} onClick={() => this.selectAll()}
className={`grey1-bg white-font`}
style={{ width: "8rem", display: "inline-block" }} style={{ width: "8rem", display: "inline-block" }}
> >
{this.props.msg.pkg.get("browser.selectAll")} {this.props.msg.pkg.get("browser.selectAll")}

View file

@ -85,32 +85,49 @@ export class PaneSettings extends React.Component<Props, State, {}> {
</h5> </h5>
<div className="font-size-s margin-t-s"> <div className="font-size-s margin-t-s">
{`${this.props.msg.pkg.get("user.name")}: ${ <span className="grey0-font">
this.props.login.userName {`${this.props.msg.pkg.get("user.name")}:`}{" "}
}`} </span>
<span>{`${this.props.login.userName}`}</span>
</div> </div>
<div className="font-size-s margin-t-s"> <div className="font-size-s margin-t-s">
{`${this.props.msg.pkg.get("user.role")}: ${ <span className="grey0-font">
this.props.login.userRole {`${this.props.msg.pkg.get("user.role")}:`}{" "}
}`} </span>
<span>{`${this.props.login.userRole}`}</span>
</div> </div>
<div className="font-size-s margin-t-s"> <div className="font-size-s margin-t-s">
{`${this.props.msg.pkg.get("user.spaceLimit")}: ${FileSize( <span className="grey0-font">
parseInt(this.props.login.quota.spaceLimit, 10), {`${this.props.msg.pkg.get("user.spaceLimit")}:`}{" "}
{ round: 0 } </span>
)}`} <span>
{" "}
{`${FileSize(parseInt(this.props.login.quota.spaceLimit, 10), {
round: 0,
})}`}
</span>
</div> </div>
<div className="font-size-s margin-t-s"> <div className="font-size-s margin-t-s">
{`${this.props.msg.pkg.get("user.upLimit")}: ${FileSize( <span className="grey0-font">
this.props.login.quota.uploadSpeedLimit, {`${this.props.msg.pkg.get("user.upLimit")}:`}{" "}
{ round: 0 } </span>
)}`} <span>
{" "}
{`${FileSize(this.props.login.quota.uploadSpeedLimit, {
round: 0,
})}`}
</span>
</div> </div>
<div className="font-size-s margin-t-s"> <div className="font-size-s margin-t-s">
{`${this.props.msg.pkg.get("user.downLimit")}: ${FileSize( <span className="grey0-font">
this.props.login.quota.downloadSpeedLimit, {`${this.props.msg.pkg.get("user.downLimit")}:`}{" "}
{ round: 0 } </span>
)}`} <span>
{" "}
{`${FileSize(this.props.login.quota.downloadSpeedLimit, {
round: 0,
})}`}
</span>
</div> </div>
</div> </div>