From 4f363a7aa080ec1615085651a52c51337dc25bd1 Mon Sep 17 00:00:00 2001 From: sveisvei Date: Thu, 22 Dec 2016 10:43:13 +0100 Subject: [PATCH] mobile view fixes --- frontend/src/component/app.jsx | 7 +++---- .../component/feature/feature-list-item-component.jsx | 10 ++-------- frontend/src/component/feature/feature.scss | 2 +- 3 files changed, 6 insertions(+), 13 deletions(-) diff --git a/frontend/src/component/app.jsx b/frontend/src/component/app.jsx index c9b70992fd..838a00b2ab 100644 --- a/frontend/src/component/app.jsx +++ b/frontend/src/component/app.jsx @@ -57,6 +57,9 @@ export default class App extends Component { } getSections () { + if (window.innerWidth < 768) { + return [base]; + } const { routes, params } = this.props; const unique = {}; let result = [base].concat(routes.splice(1).map((routeEntry) => ({ @@ -76,10 +79,6 @@ export default class App extends Component { .reverse() .join(' - '); - if (result.length > 2) { - result = result.splice(1); - } - return result; } diff --git a/frontend/src/component/feature/feature-list-item-component.jsx b/frontend/src/component/feature/feature-list-item-component.jsx index 40436c5242..3761d2a136 100644 --- a/frontend/src/component/feature/feature-list-item-component.jsx +++ b/frontend/src/component/feature/feature-list-item-component.jsx @@ -43,20 +43,14 @@ const Feature = ({ onFeatureClick(feature)} checked={enabled} /> - {name} {shorten(description, 30) || ''} + {name} {shorten(description, 30) || ''} - {strategies && strategies.map((s, i) => + {strategies && strategies.map((s, i) => {s.name} )} - - - - - - onFeatureRemove(name)} className={style.iconListItem} /> diff --git a/frontend/src/component/feature/feature.scss b/frontend/src/component/feature/feature.scss index 36dbf6f306..d63267cfbd 100644 --- a/frontend/src/component/feature/feature.scss +++ b/frontend/src/component/feature/feature.scss @@ -61,7 +61,7 @@ } @media (max-width: 960px) { - .iconListItemChip { + .hideLt960 { display: none; } }