fix(root_frame): move panel tabs to top menu
This commit is contained in:
parent
fdb9d25300
commit
c00051f98f
2 changed files with 41 additions and 31 deletions
|
@ -83,6 +83,34 @@ export class RootFrame extends React.Component<Props, State, {}> {
|
|||
update={this.props.update}
|
||||
/>
|
||||
|
||||
<div id="top-menu">
|
||||
<Tabs
|
||||
targetControl={controlName}
|
||||
tabIcons={Map<string, IconProps>({
|
||||
filesPanel: {
|
||||
name: "RiFolder2Fill",
|
||||
size: "1.6rem",
|
||||
color: "cyan0",
|
||||
},
|
||||
uploadingsPanel: {
|
||||
name: "RiUploadCloudFill",
|
||||
size: "1.6rem",
|
||||
color: "blue0",
|
||||
},
|
||||
sharingsPanel: {
|
||||
name: "RiShareBoxLine",
|
||||
size: "1.6rem",
|
||||
color: "purple0",
|
||||
},
|
||||
})}
|
||||
login={this.props.login}
|
||||
admin={this.props.admin}
|
||||
ui={this.props.ui}
|
||||
msg={this.props.msg}
|
||||
update={this.props.update}
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div className={`container-center ${showBrowser}`}>
|
||||
{/* <Browser
|
||||
browser={this.props.browser}
|
||||
|
@ -92,36 +120,6 @@ export class RootFrame extends React.Component<Props, State, {}> {
|
|||
update={this.props.update}
|
||||
/> */}
|
||||
|
||||
<div className="container">
|
||||
<div className="padding-m">
|
||||
<Tabs
|
||||
targetControl={controlName}
|
||||
tabIcons={Map<string, IconProps>({
|
||||
filesPanel: {
|
||||
name: "RiFolder2Fill",
|
||||
size: "1.6rem",
|
||||
color: "cyan0",
|
||||
},
|
||||
uploadingsPanel: {
|
||||
name: "RiUploadCloudFill",
|
||||
size: "1.6rem",
|
||||
color: "blue0",
|
||||
},
|
||||
sharingsPanel: {
|
||||
name: "RiShareBoxLine",
|
||||
size: "1.6rem",
|
||||
color: "purple0",
|
||||
},
|
||||
})}
|
||||
login={this.props.login}
|
||||
admin={this.props.admin}
|
||||
ui={this.props.ui}
|
||||
msg={this.props.msg}
|
||||
update={this.props.update}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<span className={filesPanelClass}>
|
||||
<FilesPanel
|
||||
filesInfo={this.props.filesInfo}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue