diff --git a/public/static/css/dark.css b/public/static/css/dark.css index 28498da..19498f8 100644 --- a/public/static/css/dark.css +++ b/public/static/css/dark.css @@ -244,6 +244,10 @@ margin: 3rem auto 8rem auto; } +.theme-dark .tabs button { + padding: 0.5rem 1rem; +} + /* +composition */ .theme-dark .container { diff --git a/public/static/css/white.css b/public/static/css/white.css index 218c15b..e9bf58b 100644 --- a/public/static/css/white.css +++ b/public/static/css/white.css @@ -241,6 +241,10 @@ margin: 3rem auto 8rem auto; } +.theme-default .tabs button { + padding: 0.5rem 1rem; +} + /* +composition */ .theme-default .container { diff --git a/src/client/web/src/components/control/tabs.tsx b/src/client/web/src/components/control/tabs.tsx index 29bb802..cc9203d 100644 --- a/src/client/web/src/components/control/tabs.tsx +++ b/src/client/web/src/components/control/tabs.tsx @@ -64,18 +64,13 @@ export class Tabs extends React.Component { }} className="float-l margin-r-m minor-bg" > - {titleIcon}, - {icon}, - - {this.props.msg.pkg.get( - `control.${this.props.targetControl}.${option}` - )} - , - ])} - childrenStyles={List([{}, {}, {}])} - /> +
{icon}
+
+ {this.props.msg.pkg.get( + `control.${this.props.targetControl}.${option}` + )} +
+
); }); diff --git a/src/client/web/src/components/layers.tsx b/src/client/web/src/components/layers.tsx index b06cf93..b304c14 100644 --- a/src/client/web/src/components/layers.tsx +++ b/src/client/web/src/components/layers.tsx @@ -97,24 +97,24 @@ export class Layers extends React.Component {
- , - , - ])} - childrenStyles={List([{}, { justifyContent: "flex-end" }])} - /> +
+ + </div> + <div className="col-r"> + <button + className="button-default" + onClick={() => { + this.setControlOption(settingsDialogCtrl, ctrlOff); + }} + > + {this.props.msg.pkg.get("panes.close")} + </button> + </div> + <div className="fix"></div> </Container> <SettingsDialog diff --git a/src/client/web/src/components/root_frame.tsx b/src/client/web/src/components/root_frame.tsx index a1ddc8b..7a13950 100644 --- a/src/client/web/src/components/root_frame.tsx +++ b/src/client/web/src/components/root_frame.tsx @@ -5,7 +5,7 @@ import { ICoreState, MsgProps, UIProps } from "./core_state"; import { FilesPanel, FilesProps } from "./panel_files"; import { UploadingsPanel, UploadingsProps } from "./panel_uploadings"; import { SharingsPanel, SharingsProps } from "./panel_sharings"; -import { IconProps } from "./visual/icons"; +import { IconProps, iconSize } from "./visual/icons"; import { Tabs } from "./control/tabs"; import { LoginProps } from "./pane_login"; import { Layers } from "./layers"; @@ -76,7 +76,7 @@ export class RootFrame extends React.Component<Props, State, {}> { update={this.props.update} /> - <TopBar + <TopBar login={this.props.login} msg={this.props.msg} ui={this.props.ui} @@ -89,17 +89,17 @@ export class RootFrame extends React.Component<Props, State, {}> { tabIcons={Map<string, IconProps>({ filesPanel: { name: "RiFolder2Fill", - size: "1.6rem", + size: iconSize("s"), color: "focus", }, uploadingsPanel: { name: "RiUploadCloudFill", - size: "1.6rem", + size: iconSize("s"), color: "focus", }, sharingsPanel: { name: "RiShareBoxLine", - size: "1.6rem", + size: iconSize("s"), color: "focus", }, })} diff --git a/src/client/web/src/components/visual/title.tsx b/src/client/web/src/components/visual/title.tsx index 8fd0dd2..13a238c 100644 --- a/src/client/web/src/components/visual/title.tsx +++ b/src/client/web/src/components/visual/title.tsx @@ -2,7 +2,7 @@ import * as React from "react"; import { List } from "immutable"; import { Flexbox } from "../layout/flexbox"; -import { getIconWithProps } from "./icons"; +import { getIconWithProps, iconSize } from "./icons"; import { colorClass } from "./colors"; export interface Props { @@ -15,15 +15,16 @@ export const Title = (props: Props) => { return ( <Flexbox children={List([ - <Flexbox - children={List([ - getIconWithProps(props.iconName, { - size: "3.2rem", + <div> + <div className="float-l icon-l"> + {getIconWithProps(props.iconName, { + size: iconSize("l"), className: `margin-r-m ${colorClass(props.iconColor)}-font`, - }), - <span className="title-m bold">{props.title}</span>, - ])} - />, + })} + </div> + <div className="title-m float-l bold">{props.title}</div> + <div className="fix"></div> + </div>, <span></span>, ])}