mirror of
https://github.com/Unleash/unleash.git
synced 2025-01-25 00:07:47 +01:00
fix: minor css tweaks for mobile
This commit is contained in:
parent
97decf801a
commit
1759bfe911
@ -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 (
|
||||
<form onSubmit={onSubmit(input, features)}>
|
||||
<section style={{ padding: '16px' }}>
|
||||
<section className={styles.paddingDesktop}>
|
||||
<StrategiesSection
|
||||
configuredStrategies={configuredStrategies}
|
||||
featureToggleName={input.name}
|
||||
|
@ -64,3 +64,15 @@
|
||||
display: inline-block;
|
||||
vertical-align: bottom;
|
||||
}
|
||||
|
||||
|
||||
.paddingDesktop {
|
||||
padding: 16px;
|
||||
}
|
||||
|
||||
@media (max-width: 500px) {
|
||||
.paddingDesktop {
|
||||
padding: 0;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -205,7 +205,9 @@ export default class ViewFeatureToggleComponent extends React.Component {
|
||||
checked={featureToggle.enabled}
|
||||
onChange={() => toggleFeature(!featureToggle.enabled, featureToggle.name)}
|
||||
>
|
||||
{featureToggle.enabled ? 'Enabled' : 'Disabled'}
|
||||
<span className="mdl-cell--hide-phone">
|
||||
{featureToggle.enabled ? 'Enabled' : 'Disabled'}
|
||||
</span>
|
||||
</Switch>
|
||||
) : (
|
||||
<Switch disabled ripple checked={featureToggle.enabled}>
|
||||
@ -250,10 +252,14 @@ export default class ViewFeatureToggleComponent extends React.Component {
|
||||
tabBarProps={{ style: { width: '100%' } }}
|
||||
className="mdl-color--grey-100"
|
||||
>
|
||||
<Tab onClick={() => this.goToTab('strategies', featureToggleName)}>Strategies</Tab>
|
||||
<Tab onClick={() => this.goToTab('strategies', featureToggleName)}>Activation</Tab>
|
||||
<Tab onClick={() => this.goToTab('view', featureToggleName)}>Metrics</Tab>
|
||||
<Tab onClick={() => this.goToTab('variants', featureToggleName)}>Variants</Tab>
|
||||
<Tab onClick={() => this.goToTab('history', featureToggleName)}>History</Tab>
|
||||
<Tab onClick={() => this.goToTab('variants', featureToggleName)}>
|
||||
V<span className="mdl-cell--hide-phone">ariants</span>
|
||||
</Tab>
|
||||
<Tab onClick={() => this.goToTab('history', featureToggleName)}>
|
||||
L<span className="mdl-cell--hide-phone">og</span>
|
||||
</Tab>
|
||||
</Tabs>
|
||||
{tabContent}
|
||||
</Card>
|
||||
|
Loading…
Reference in New Issue
Block a user