[DE mobile] Fix open searchbar, add logo in navbar
This commit is contained in:
parent
d64eae031a
commit
ccaf637c6a
|
@ -6,6 +6,7 @@
|
||||||
@darkGreen: #40865c;
|
@darkGreen: #40865c;
|
||||||
|
|
||||||
--f7-navbar-link-color: @themeColor;
|
--f7-navbar-link-color: @themeColor;
|
||||||
|
--f7-subnavbar-link-color: @themeColor;
|
||||||
--f7-navbar-text-color: @black;
|
--f7-navbar-text-color: @black;
|
||||||
--f7-navbar-title-line-height: 44px;
|
--f7-navbar-title-line-height: 44px;
|
||||||
--f7-navbar-link-line-height: 44px;
|
--f7-navbar-link-line-height: 44px;
|
||||||
|
@ -30,7 +31,7 @@
|
||||||
margin-left: 0;
|
margin-left: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.navbar {
|
.navbar, .subnavbar {
|
||||||
a.btn-doc-back {
|
a.btn-doc-back {
|
||||||
width: 22px;
|
width: 22px;
|
||||||
}
|
}
|
||||||
|
@ -38,7 +39,7 @@
|
||||||
.title {
|
.title {
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
}
|
}
|
||||||
.navbar-inner {
|
.navbar-inner, .subnavbar-inner {
|
||||||
z-index: auto;
|
z-index: auto;
|
||||||
}
|
}
|
||||||
.sheet-close {
|
.sheet-close {
|
||||||
|
|
|
@ -8,6 +8,20 @@
|
||||||
@red: #f00;
|
@red: #f00;
|
||||||
@autoColor: @black;
|
@autoColor: @black;
|
||||||
|
|
||||||
|
.navbar.main-navbar {
|
||||||
|
height: 26px;
|
||||||
|
.navbar-inner {
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
padding-top: 8px;
|
||||||
|
}
|
||||||
|
.navbar-bg {
|
||||||
|
&:before, &:after {
|
||||||
|
content: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.popup, .popover, .sheet-modal {
|
.popup, .popover, .sheet-modal {
|
||||||
.list {
|
.list {
|
||||||
&:first-child {
|
&:first-child {
|
||||||
|
|
|
@ -3,6 +3,11 @@
|
||||||
&.icon_mask {
|
&.icon_mask {
|
||||||
background-color: white;
|
background-color: white;
|
||||||
}
|
}
|
||||||
|
&.icon-logo {
|
||||||
|
width: 100px;
|
||||||
|
height: 14px;
|
||||||
|
background: url('../../img/header/logo-ios.svg') no-repeat center;
|
||||||
|
}
|
||||||
&.icon-prev {
|
&.icon-prev {
|
||||||
width: 22px;
|
width: 22px;
|
||||||
height: 22px;
|
height: 22px;
|
||||||
|
|
|
@ -3,6 +3,11 @@
|
||||||
&.icon_mask {
|
&.icon_mask {
|
||||||
background-color: black;
|
background-color: black;
|
||||||
}
|
}
|
||||||
|
&.icon-logo {
|
||||||
|
width: 100px;
|
||||||
|
height: 14px;
|
||||||
|
background: url('../../img/header/logo-android.svg') no-repeat center;
|
||||||
|
}
|
||||||
&.icon-prev {
|
&.icon-prev {
|
||||||
width: 20px;
|
width: 20px;
|
||||||
height: 20px;
|
height: 20px;
|
||||||
|
|
|
@ -9,6 +9,10 @@
|
||||||
--f7-navbar-link-color: @navBarIconColor;
|
--f7-navbar-link-color: @navBarIconColor;
|
||||||
--f7-navbar-text-color: @navBarIconColor;
|
--f7-navbar-text-color: @navBarIconColor;
|
||||||
|
|
||||||
|
--f7-subnavbar-bg-color: @themeColor;
|
||||||
|
--f7-subnavbar-link-color: @navBarIconColor;
|
||||||
|
--f7-subnavbar-text-color: @navBarIconColor;
|
||||||
|
|
||||||
// Main Toolbar
|
// Main Toolbar
|
||||||
#editor-navbar.navbar .right {
|
#editor-navbar.navbar .right {
|
||||||
padding-right: 4px;
|
padding-right: 4px;
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
|
|
||||||
import React, { Component } from 'react';
|
import React, { Component } from 'react';
|
||||||
import { f7 } from 'framework7-react';
|
import { f7 } from 'framework7-react';
|
||||||
import { Page, View } from 'framework7-react';
|
import { Page, View, Navbar, Subnavbar, Icon } from 'framework7-react';
|
||||||
import { inject } from "mobx-react";
|
import { inject } from "mobx-react";
|
||||||
|
|
||||||
import EditOptions from '../view/edit/Edit';
|
import EditOptions from '../view/edit/Edit';
|
||||||
|
@ -65,7 +65,13 @@ export default class MainPage extends Component {
|
||||||
return (
|
return (
|
||||||
<Page name="home">
|
<Page name="home">
|
||||||
{/* Top Navbar */}
|
{/* Top Navbar */}
|
||||||
<Toolbar openOptions={this.handleClickToOpenOptions} closeOptions={this.handleOptionsViewClosed}/>
|
<Navbar id='editor-navbar' className='main-navbar'>
|
||||||
|
<div className="main-logo"><Icon icon="icon-logo"></Icon></div>
|
||||||
|
<Subnavbar>
|
||||||
|
<Toolbar openOptions={this.handleClickToOpenOptions} closeOptions={this.handleOptionsViewClosed}/>
|
||||||
|
<Search useSuspense={false} />
|
||||||
|
</Subnavbar>
|
||||||
|
</Navbar>
|
||||||
{/* Page content */}
|
{/* Page content */}
|
||||||
<View id="editor_sdk">
|
<View id="editor_sdk">
|
||||||
|
|
||||||
|
|
|
@ -1,13 +1,11 @@
|
||||||
import React from 'react';
|
import React, {Fragment} from 'react';
|
||||||
import {Navbar, NavLeft, NavRight, NavTitle, Link, Icon} from 'framework7-react';
|
import {NavLeft, NavRight, NavTitle, Link, Icon} from 'framework7-react';
|
||||||
import { Device } from '../../../../common/mobile/utils/device';
|
import { Device } from '../../../../common/mobile/utils/device';
|
||||||
import {Search} from "../controller/Search";
|
|
||||||
|
|
||||||
const ToolbarView = props => {
|
const ToolbarView = props => {
|
||||||
const disableEditBtn = props.isObjectLocked || props.stateDisplayMode || props.disabledEditControls;
|
const disableEditBtn = props.isObjectLocked || props.stateDisplayMode || props.disabledEditControls;
|
||||||
return (
|
return (
|
||||||
<Navbar id='editor-navbar'>
|
<Fragment>
|
||||||
<div slot="before-inner" className="main-logo"><Icon icon="icon-logo"></Icon></div>
|
|
||||||
<NavLeft>
|
<NavLeft>
|
||||||
{props.isShowBack && <Link className='btn-doc-back' icon='icon-back' onClick={props.onBack}></Link>}
|
{props.isShowBack && <Link className='btn-doc-back' icon='icon-back' onClick={props.onBack}></Link>}
|
||||||
<Link icon='icon-undo' className={!props.isCanUndo && 'disabled'} onClick={props.onUndo}></Link>
|
<Link icon='icon-undo' className={!props.isCanUndo && 'disabled'} onClick={props.onUndo}></Link>
|
||||||
|
@ -21,9 +19,7 @@ const ToolbarView = props => {
|
||||||
{props.displayCollaboration && <Link id='btn-coauth' href={false} icon='icon-collaboration' onClick={e => props.openOptions('coauth')}></Link>}
|
{props.displayCollaboration && <Link id='btn-coauth' href={false} icon='icon-collaboration' onClick={e => props.openOptions('coauth')}></Link>}
|
||||||
<Link className={props.disabledSettings && 'disabled'} id='btn-settings' icon='icon-settings' href={false} onClick={e => props.openOptions('settings')}></Link>
|
<Link className={props.disabledSettings && 'disabled'} id='btn-settings' icon='icon-settings' href={false} onClick={e => props.openOptions('settings')}></Link>
|
||||||
</NavRight>
|
</NavRight>
|
||||||
{/* { Device.phone ? null : <Search /> } */}
|
</Fragment>
|
||||||
<Search useSuspense={false} />
|
|
||||||
</Navbar>
|
|
||||||
)
|
)
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue