mirror of
https://github.com/Unleash/unleash.git
synced 2025-02-09 00:18:00 +01:00
mobile view fixes
This commit is contained in:
parent
f44ac5c30c
commit
4f363a7aa0
@ -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;
|
||||
}
|
||||
|
||||
|
@ -43,20 +43,14 @@ const Feature = ({
|
||||
<Switch title="test" key="left-actions" onChange={() => onFeatureClick(feature)} checked={enabled} />
|
||||
</span>
|
||||
<Link to={`/features/view/${name}`} className={style.link}>
|
||||
{name} <small>{shorten(description, 30) || ''}</small>
|
||||
{name} <small className={style.hideLt960}>{shorten(description, 30) || ''}</small>
|
||||
</Link>
|
||||
</span>
|
||||
|
||||
<span className={style.iconList} >
|
||||
{strategies && strategies.map((s, i) => <Chip className={style.iconListItemChip} key={i}>
|
||||
{strategies && strategies.map((s, i) => <Chip className={[style.iconListItemChip, style.hideLt960].join(' ')} key={i}>
|
||||
<small>{s.name}</small>
|
||||
</Chip>)}
|
||||
<Link to={`/features/edit/${name}`} title={`Edit ${name}`} className={style.iconListItem}>
|
||||
<IconButton name="edit" />
|
||||
</Link>
|
||||
<Link to={`features/history/${name}`} title={`History htmlFor ${name}`} className={style.iconListItem}>
|
||||
<IconButton name="history" />
|
||||
</Link>
|
||||
<IconButton name="delete" onClick={() => onFeatureRemove(name)} className={style.iconListItem} />
|
||||
</span>
|
||||
|
||||
|
@ -61,7 +61,7 @@
|
||||
}
|
||||
|
||||
@media (max-width: 960px) {
|
||||
.iconListItemChip {
|
||||
.hideLt960 {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user