Skip to content

Commit

Permalink
fix(react-scheduler-material-ui): correct AppointmentTooltip OpenButt…
Browse files Browse the repository at this point in the history
…on position (#2367)
  • Loading branch information
AryamnovEugeniy committed Sep 30, 2019
1 parent c640464 commit 3fbcf4a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
Expand Up @@ -35,7 +35,7 @@ const BasicLayout = ({ onFieldChange, appointmentData, ...restProps }) => {
>
<AppointmentForm.Label
text="Custom Field"
id="titleLabel"
type="title"
/>
<AppointmentForm.TextEditor
value={appointmentData.customField}
Expand Down
Expand Up @@ -31,6 +31,7 @@ import ListItemText from '@material-ui/core/ListItemText';
import MenuItem from '@material-ui/core/MenuItem';
import Select from '@material-ui/core/Select';
import FormControl from '@material-ui/core/FormControl';
import classNames from 'classnames';
import { lighten } from '@material-ui/core/styles/colorManipulator';

import { tasks, priorities } from '../../../demo-data/tasks';
Expand Down Expand Up @@ -94,6 +95,11 @@ const styles = theme => ({
paddingLeft: theme.spacing(2.2),
paddingRight: theme.spacing(2.2),
},
titleNoWrap: {
'& div > div > div': {
whiteSpace: 'normal',
},
},
});

const PrioritySelectorItem = ({ id, classes }) => {
Expand Down Expand Up @@ -181,7 +187,7 @@ const TooltipHeader = withStyles(styles, { name: 'TooltipHeader' })(
<AppointmentTooltip.Header
{...restProps}
appointmentData={appointmentData}
className={priorityClasses}
className={classNames(priorityClasses, classes.titleNoWrap)}
/>
);
},
Expand Down
Expand Up @@ -74,7 +74,7 @@ const LayoutBase = ({
&& <CommandButton id={commandButtonIds.delete} onExecute={onDeleteButtonClick} />}
{showCloseButton && <CommandButton id={commandButtonIds.close} onExecute={onHide} />}
</div>
<Grid container spacing={1} alignItems="center">
<Grid container spacing={1} alignItems="flex-end">
<Grid item xs={2} className={classes.flexItem}>
<div className={classes.buttonsLeft}>
{showOpenButton
Expand Down

0 comments on commit 3fbcf4a

Please sign in to comment.