1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-02-23 00:22:19 +01:00

improve grid in tablet and phone

This commit is contained in:
sveisvei 2016-12-17 21:41:23 +01:00
parent 8806f77dfe
commit 691e95d6e7
3 changed files with 9 additions and 9 deletions

View File

@ -64,7 +64,7 @@ class ClientApplications extends PureComponent {
const content = this.state.activeTab === 0 ? (
<Grid>
<Cell col={3}>
<Cell col={3} tablet={4} phone={12}>
<h6> Toggles</h6>
<hr />
<List>
@ -88,7 +88,7 @@ class ClientApplications extends PureComponent {
)}
</List>
</Cell>
<Cell col={3}>
<Cell col={3} tablet={4} phone={12}>
<h6>Implemented strategies</h6>
<hr />
<List>
@ -111,7 +111,7 @@ class ClientApplications extends PureComponent {
))}
</List>
</Cell>
<Cell col={6}>
<Cell col={6} tablet={12}>
<h6>{instances.length} Instances connected</h6>
<hr />
<List>

View File

@ -29,7 +29,7 @@ const MetricTab = ({ metrics, featureToggle, toggleFeature }) => {
onChange={() => toggleFeature(featureToggle)}>Toggle {featureToggle.name}</SwitchWithLabel>
<hr />
<Grid style={{ textAlign: 'center' }}>
<Cell col={3}>
<Cell tablet={4} col={3} phone={12}>
{
lastMinute.isFallback ?
<Icon style={{ width: '100px', height: '100px', fontSize: '100px', color: '#ccc' }}
@ -40,7 +40,7 @@ const MetricTab = ({ metrics, featureToggle, toggleFeature }) => {
}
<p><strong>Last minute</strong><br /> Yes {lastMinute.yes}, No: {lastMinute.no}</p>
</Cell>
<Cell col={3}>
<Cell col={3} tablet={4} phone={12}>
{
lastHour.isFallback ?
<Icon style={{ width: '100px', height: '100px', fontSize: '100px', color: '#ccc' }}
@ -51,7 +51,7 @@ const MetricTab = ({ metrics, featureToggle, toggleFeature }) => {
}
<p><strong>Last hour</strong><br /> Yes {lastHour.yes}, No: {lastHour.no}</p>
</Cell>
<Cell col={6}>
<Cell col={6} tablet={12}>
{seenApps.length > 0 ?
(<div><strong>Seen in applications:</strong></div>) :
<div>

View File

@ -33,7 +33,7 @@ class ShowStrategyComponent extends PureComponent {
<div>
<Grid>
<Cell col={12}>
<Cell col={12} >
<h6>Parameters</h6>
<hr />
<List>
@ -41,13 +41,13 @@ class ShowStrategyComponent extends PureComponent {
</List>
</Cell>
<Cell col={6}>
<Cell col={6} tablet={12}>
<h6>Applications using this strategy</h6>
<hr />
<AppsLinkList apps={applications} />
</Cell>
<Cell col={6}>
<Cell col={6} tablet={12}>
<h6>Toggles using this strategy</h6>
<hr />
<TogglesLinkList toggles={toggles} />