mirror of
https://github.com/Unleash/unleash.git
synced 2025-04-24 01:18:01 +02:00
fix: minur ux tweaks
This commit is contained in:
parent
14595fb051
commit
107f932e03
@ -134,6 +134,7 @@ class StrategyConfigure extends React.Component {
|
|||||||
}
|
}
|
||||||
return (
|
return (
|
||||||
<div key={name}>
|
<div key={name}>
|
||||||
|
<br />
|
||||||
<StrategyInputPercentage
|
<StrategyInputPercentage
|
||||||
name={name}
|
name={name}
|
||||||
onChange={this.handleConfigChange.bind(this, name)}
|
onChange={this.handleConfigChange.bind(this, name)}
|
||||||
|
@ -2,7 +2,12 @@
|
|||||||
|
|
||||||
exports[`should render DrawerMenu 1`] = `
|
exports[`should render DrawerMenu 1`] = `
|
||||||
<react-mdl-Drawer
|
<react-mdl-Drawer
|
||||||
className="mdl-color--white"
|
style={
|
||||||
|
Object {
|
||||||
|
"border": 0,
|
||||||
|
"boxShadow": "none",
|
||||||
|
}
|
||||||
|
}
|
||||||
>
|
>
|
||||||
<span
|
<span
|
||||||
className="drawerTitle mdl-layout-title"
|
className="drawerTitle mdl-layout-title"
|
||||||
@ -111,7 +116,12 @@ exports[`should render DrawerMenu 1`] = `
|
|||||||
|
|
||||||
exports[`should render DrawerMenu with "features" selected 1`] = `
|
exports[`should render DrawerMenu with "features" selected 1`] = `
|
||||||
<react-mdl-Drawer
|
<react-mdl-Drawer
|
||||||
className="mdl-color--white"
|
style={
|
||||||
|
Object {
|
||||||
|
"border": 0,
|
||||||
|
"boxShadow": "none",
|
||||||
|
}
|
||||||
|
}
|
||||||
>
|
>
|
||||||
<span
|
<span
|
||||||
className="drawerTitle mdl-layout-title"
|
className="drawerTitle mdl-layout-title"
|
||||||
@ -134,7 +144,7 @@ exports[`should render DrawerMenu with "features" selected 1`] = `
|
|||||||
>
|
>
|
||||||
<a
|
<a
|
||||||
aria-current="page"
|
aria-current="page"
|
||||||
className="navigationLink mdl-color-text--grey-900 navigationLink mdl-color-text--black mdl-color--blue-grey-100"
|
className="navigationLink mdl-color-text--grey-900 navigationLink mdl-color-text--black mdl-color--blue-grey-50"
|
||||||
href="/features"
|
href="/features"
|
||||||
onClick={[Function]}
|
onClick={[Function]}
|
||||||
style={Object {}}
|
style={Object {}}
|
||||||
|
@ -41,11 +41,11 @@ function renderLink(link) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export const DrawerMenu = ({ links = [] }) => (
|
export const DrawerMenu = ({ links = [], title = 'Unleash' }) => (
|
||||||
<Drawer className="mdl-color--white">
|
<Drawer style={{ boxShadow: 'none', border: 0 }}>
|
||||||
<span className={[styles.drawerTitle, 'mdl-layout-title'].join(' ')}>
|
<span className={[styles.drawerTitle, 'mdl-layout-title'].join(' ')}>
|
||||||
<img src="public/logo.png" width="32" height="32" className={styles.drawerTitleLogo} />
|
<img src="public/logo.png" width="32" height="32" className={styles.drawerTitleLogo} />
|
||||||
<span className={styles.drawerTitleText}>Unleash</span>
|
<span className={styles.drawerTitleText}>{title}</span>
|
||||||
</span>
|
</span>
|
||||||
<hr />
|
<hr />
|
||||||
<Navigation className={styles.navigation}>
|
<Navigation className={styles.navigation}>
|
||||||
@ -54,7 +54,7 @@ export const DrawerMenu = ({ links = [] }) => (
|
|||||||
key={item.path}
|
key={item.path}
|
||||||
to={item.path}
|
to={item.path}
|
||||||
className={[styles.navigationLink, 'mdl-color-text--grey-900'].join(' ')}
|
className={[styles.navigationLink, 'mdl-color-text--grey-900'].join(' ')}
|
||||||
activeClassName={[styles.navigationLink, 'mdl-color-text--black', 'mdl-color--blue-grey-100'].join(
|
activeClassName={[styles.navigationLink, 'mdl-color-text--black', 'mdl-color--blue-grey-50'].join(
|
||||||
' '
|
' '
|
||||||
)}
|
)}
|
||||||
>
|
>
|
||||||
@ -69,4 +69,5 @@ export const DrawerMenu = ({ links = [] }) => (
|
|||||||
|
|
||||||
DrawerMenu.propTypes = {
|
DrawerMenu.propTypes = {
|
||||||
links: PropTypes.array,
|
links: PropTypes.array,
|
||||||
|
title: PropTypes.string,
|
||||||
};
|
};
|
||||||
|
@ -35,16 +35,16 @@ class HeaderComponent extends PureComponent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
const { headerBackground, links } = this.props.uiConfig;
|
const { headerBackground, links, name } = this.props.uiConfig;
|
||||||
const style = headerBackground ? { background: headerBackground } : {};
|
const style = headerBackground ? { background: headerBackground } : {};
|
||||||
return (
|
return (
|
||||||
<React.Fragment>
|
<React.Fragment>
|
||||||
<Header title={<Route path="/:path" component={Breadcrum} />} style={style}>
|
<Header scroll seamed title={<Route path="/:path" component={Breadcrum} />} style={style}>
|
||||||
<Navigation>
|
<Navigation>
|
||||||
<ShowUserContainer />
|
<ShowUserContainer />
|
||||||
</Navigation>
|
</Navigation>
|
||||||
</Header>
|
</Header>
|
||||||
<DrawerMenu links={links} />
|
<DrawerMenu links={links} title={name} />
|
||||||
</React.Fragment>
|
</React.Fragment>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.content {
|
.content {
|
||||||
width: 1200px;
|
width: 1100px;
|
||||||
margin-left: auto;
|
margin-left: auto;
|
||||||
margin-right: auto;
|
margin-right: auto;
|
||||||
margin-top: 16px;
|
margin-top: 16px;
|
||||||
@ -25,6 +25,8 @@
|
|||||||
@media (max-width: 1024px) {
|
@media (max-width: 1024px) {
|
||||||
.content {
|
.content {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
margin-left: 0;
|
||||||
|
margin-right: 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@media (max-width: 600px) {
|
@media (max-width: 600px) {
|
||||||
@ -46,6 +48,7 @@
|
|||||||
padding-bottom: 16px;
|
padding-bottom: 16px;
|
||||||
padding-left: 24px !important;
|
padding-left: 24px !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media screen and (max-width: 1024px) {
|
@media screen and (max-width: 1024px) {
|
||||||
.drawerTitle {
|
.drawerTitle {
|
||||||
padding-top: 12px;
|
padding-top: 12px;
|
||||||
@ -59,14 +62,16 @@
|
|||||||
.drawerTitleText {
|
.drawerTitleText {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
|
font-size: 0.8em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.navigation {
|
.navigation {
|
||||||
padding: 8px 0 !important;
|
padding: 8px 5px 8px 0 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
.navigationLink {
|
.navigationLink {
|
||||||
padding: 12px 20px !important;
|
padding: 12px 20px !important;
|
||||||
|
border-radius: 0 50px 50px 0;
|
||||||
}
|
}
|
||||||
@media screen and (max-width: 1024px) {
|
@media screen and (max-width: 1024px) {
|
||||||
.navigationLink {
|
.navigationLink {
|
||||||
|
Loading…
Reference in New Issue
Block a user