1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-01-25 00:07:47 +01:00

fix: constraints scrollbars (#504)

This commit is contained in:
Fredrik Strand Oseberg 2021-11-22 11:32:43 +01:00 committed by GitHub
parent 2c7b544540
commit 47bfda1f7b
3 changed files with 3 additions and 4 deletions

View File

@ -7,7 +7,6 @@ export const useStyles = makeStyles(theme => ({
},
constraint: {
width: '100%',
overflow: 'scroll',
display: 'flex',
alignItems: 'center',
justifyContent: 'center',

View File

@ -12,12 +12,12 @@ interface IConstraintProps {
const Constraint = ({ constraint, className, ...rest }: IConstraintProps) => {
const styles = useStyles();
const classes = classnames(styles.constraint, className, {
const classes = classnames(styles.constraint, {
[styles.column]: constraint.values.length > 2,
});
return (
<div className={classes} {...rest}>
<div className={classes + ' ' + className} {...rest}>
<StringTruncator text={constraint.contextName} maxWidth="125" />
<FeatureStrategiesSeparator
text={constraint.operator}

View File

@ -21,6 +21,6 @@ export const useStyles = makeStyles(theme => ({
fontSize: theme.fontSizes.smallBody,
},
constraintBody: {
justifyContent: 'flex-start',
maxWidth: '350px',
},
}));