xs-display showing only two hardware-pictures

This commit is contained in:
Delucse 2020-09-14 13:33:21 +02:00
parent 9724d01b76
commit 93e047f4bf

View File

@ -2,7 +2,7 @@ import React, { Component } from 'react';
import { fade } from '@material-ui/core/styles/colorManipulator'; import { fade } from '@material-ui/core/styles/colorManipulator';
import { withStyles } from '@material-ui/core/styles'; import { withStyles } from '@material-ui/core/styles';
import withWidth, { isWidthUp } from '@material-ui/core/withWidth'; import withWidth, { isWidthDown } from '@material-ui/core/withWidth';
import Typography from '@material-ui/core/Typography'; import Typography from '@material-ui/core/Typography';
import IconButton from '@material-ui/core/IconButton'; import IconButton from '@material-ui/core/IconButton';
import Button from '@material-ui/core/Button'; import Button from '@material-ui/core/Button';
@ -54,7 +54,7 @@ class Hardware extends Component {
}; };
render() { render() {
var cols = isWidthUp('sm', this.props.width) ? isWidthUp('md', this.props.width) ? isWidthUp('lg', this.props.width) ? 6 : 5 : 4 : 3; var cols = isWidthDown('md', this.props.width) ? isWidthDown('sm', this.props.width) ? isWidthDown('xs', this.props.width) ? 2 : 3 : 4 : 6;
return ( return (
<div style={{marginTop: '10px', marginBottom: '5px'}}> <div style={{marginTop: '10px', marginBottom: '5px'}}>
<Typography>Für die Umsetzung benötigst du folgende Hardware:</Typography> <Typography>Für die Umsetzung benötigst du folgende Hardware:</Typography>