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:
parent
2c7b544540
commit
47bfda1f7b
@ -7,7 +7,6 @@ export const useStyles = makeStyles(theme => ({
|
||||
},
|
||||
constraint: {
|
||||
width: '100%',
|
||||
overflow: 'scroll',
|
||||
display: 'flex',
|
||||
alignItems: 'center',
|
||||
justifyContent: 'center',
|
||||
|
@ -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}
|
||||
|
@ -21,6 +21,6 @@ export const useStyles = makeStyles(theme => ({
|
||||
fontSize: theme.fontSizes.smallBody,
|
||||
},
|
||||
constraintBody: {
|
||||
justifyContent: 'flex-start',
|
||||
maxWidth: '350px',
|
||||
},
|
||||
}));
|
||||
|
Loading…
Reference in New Issue
Block a user