diff --git a/public/static/css/white.css b/public/static/css/white.css index 56dfc52..84cded2 100644 --- a/public/static/css/white.css +++ b/public/static/css/white.css @@ -81,7 +81,7 @@ } .theme-default .float-input:last-child { - margin: auto 1rem auto auto; + margin: auto auto auto auto; } .theme-default .float-input .label { @@ -95,6 +95,37 @@ color: #fff; } +.theme-default .pane-title { + color: black; +} + +.theme-default #pane-settings { + padding: 2rem; +} + +.theme-default #pane-settings #profile { + color: #95a5a6; + font-size: 1.2rem; + line-height: 1.8rem; +} + +.theme-default .wide-input { + width: 20rem; +} + +.theme-default .hr { + margin: 1rem 0; + background-color: #ecf0f1; +} + +.theme-default .key-value { + margin-top: 0.5rem; +} + +.theme-default .value { + color: #697384; +} + .theme-default #tail { color: #34495e; } diff --git a/src/client/web/src/components/pane_settings.tsx b/src/client/web/src/components/pane_settings.tsx index a2d720d..a683be8 100644 --- a/src/client/web/src/components/pane_settings.tsx +++ b/src/client/web/src/components/pane_settings.tsx @@ -5,7 +5,6 @@ import { List } from "immutable"; import { ICoreState, UIProps, MsgProps } from "./core_state"; import { LoginProps } from "./pane_login"; import { Flexbox } from "./layout/flexbox"; -import { Flowgrid } from "./layout/flowgrid"; import { updater } from "./state_updater"; import { alertMsg } from "../common/env"; export interface Props { @@ -139,259 +138,236 @@ export class PaneSettings extends React.Component { render() { return ( -
-
-
-
- {this.props.msg.pkg.get("user.profile")} -
+
+
+
+ {this.props.msg.pkg.get("user.profile")} +
-
- - {`${this.props.msg.pkg.get("user.name")}:`}{" "} - - {`${this.props.login.userName}`} -
-
- - {`${this.props.msg.pkg.get("user.role")}:`}{" "} - - {`${this.props.login.userRole}`} -
-
- - {`${this.props.msg.pkg.get("user.spaceLimit")}:`}{" "} - - - {" "} - {`${FileSize(parseInt(this.props.login.quota.spaceLimit, 10), { - round: 0, - })}`} - -
-
- - {`${this.props.msg.pkg.get("user.upLimit")}:`}{" "} - - - {" "} - {`${FileSize(this.props.login.quota.uploadSpeedLimit, { - round: 0, - })}`} - -
-
- - {`${this.props.msg.pkg.get("user.downLimit")}:`}{" "} - - - {" "} - {`${FileSize(this.props.login.quota.downloadSpeedLimit, { - round: 0, - })}`} - -
+
+ {`${this.props.msg.pkg.get("user.name")}: `} + {`${this.props.login.userName}`}
-
-
- - {this.props.msg.pkg.get("settings.pwd.update")} - , -
+ +
+ +
+ + {this.props.msg.pkg.get("settings.pwd.update")} + , + , + ])} + childrenStyles={List([{}, { justifyContent: "flex-end" }])} + /> + + +
+ {this.props.msg.pkg.get("settings.pwd.old")} +
+ +
+ + +
+ {this.props.msg.pkg.get("settings.pwd.new1")} +
+ +
+ + +
+ {this.props.msg.pkg.get("settings.pwd.new2")} +
+ +
+
+ +
+ +
+ + {this.props.msg.pkg.get("settings.chooseLan")} + , + + + + + , + ])} + childrenStyles={List([{}, { justifyContent: "flex-end" }])} + /> +
+ +
+ +
+ + {this.props.msg.pkg.get("settings.customLan")} + , + + + , - ])} - childrenStyles={List([{}, { justifyContent: "flex-end" }])} - /> + + , + ])} + childrenStyles={List([{}, { justifyContent: "flex-end" }])} + /> - -
- {this.props.msg.pkg.get("settings.pwd.old")} -
- -
- - -
- {this.props.msg.pkg.get("settings.pwd.new1")} -
- -
- - -
- {this.props.msg.pkg.get("settings.pwd.new2")} -
- -
-
- -
-
- - {this.props.msg.pkg.get("settings.chooseLan")} - , - - - - , - ])} - childrenStyles={List([{}, { justifyContent: "flex-end" }])} +
+
+ {this.props.msg.pkg.get("settings.lanPackURL")} +
+
+
+ +
+ +
+ {this.props.msg.pkg.get("cfg.bg")}, + + , + ])} + childrenStyles={List([{}, { justifyContent: "flex-end" }])} + /> -
- - {this.props.msg.pkg.get("settings.customLan")} - , +
+
+ {this.props.msg.pkg.get("cfg.bg.url")} +
+ +
- - - , - ])} - childrenStyles={List([{}, { justifyContent: "flex-end" }])} - /> - -
- {this.props.msg.pkg.get("settings.lanPackURL")} -
- -
, - ])} - /> +
+
+ {this.props.msg.pkg.get("cfg.bg.repeat")} +
+ +
+ +
+
+ {this.props.msg.pkg.get("cfg.bg.pos")} +
+ +
+ +
+
+ {this.props.msg.pkg.get("cfg.bg.align")} +
+ +
+
-
-
- - {this.props.msg.pkg.get("cfg.bg")} - , - - - - , - ])} - childrenStyles={List([{}, { justifyContent: "flex-end" }])} - /> - -
- {this.props.msg.pkg.get("cfg.bg.url")} -
- -
, - -
-
- {this.props.msg.pkg.get("cfg.bg.repeat")} -
- -
, - -
-
- {this.props.msg.pkg.get("cfg.bg.pos")} -
- -
, - -
-
- {this.props.msg.pkg.get("cfg.bg.align")} -
- -
, - ])} - /> -
- - {/*
+ {/*
{ ])} />
*/} - -
); }