From 1759bfe9111aab5179933037d2d2e0c2bc688285 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ivar=20Conradi=20=C3=98sthus?= Date: Fri, 25 Sep 2020 22:09:18 +0200 Subject: [PATCH] fix: minor css tweaks for mobile --- .../feature/form/form-update-feature-component.jsx | 4 +++- frontend/src/component/feature/form/strategy.scss | 12 ++++++++++++ frontend/src/component/feature/view-component.jsx | 14 ++++++++++---- 3 files changed, 25 insertions(+), 5 deletions(-) diff --git a/frontend/src/component/feature/form/form-update-feature-component.jsx b/frontend/src/component/feature/form/form-update-feature-component.jsx index 2531dfe9fa..1b8942407c 100644 --- a/frontend/src/component/feature/form/form-update-feature-component.jsx +++ b/frontend/src/component/feature/form/form-update-feature-component.jsx @@ -2,6 +2,8 @@ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import StrategiesSection from './strategies-section-container'; +import styles from './strategy.scss'; + import { FormButtons } from './../../common'; class UpdateFeatureComponent extends Component { @@ -32,7 +34,7 @@ class UpdateFeatureComponent extends Component { return (
-
+
toggleFeature(!featureToggle.enabled, featureToggle.name)} > - {featureToggle.enabled ? 'Enabled' : 'Disabled'} + + {featureToggle.enabled ? 'Enabled' : 'Disabled'} + ) : ( @@ -250,10 +252,14 @@ export default class ViewFeatureToggleComponent extends React.Component { tabBarProps={{ style: { width: '100%' } }} className="mdl-color--grey-100" > - this.goToTab('strategies', featureToggleName)}>Strategies + this.goToTab('strategies', featureToggleName)}>Activation this.goToTab('view', featureToggleName)}>Metrics - this.goToTab('variants', featureToggleName)}>Variants - this.goToTab('history', featureToggleName)}>History + this.goToTab('variants', featureToggleName)}> + Variants + + this.goToTab('history', featureToggleName)}> + Log + {tabContent}