fix: funnel calendar position

This commit is contained in:
Shekar Siri 2021-05-21 14:28:16 +05:30
parent 2ac57874b9
commit 56cc198fc6
4 changed files with 9 additions and 3 deletions

View file

@ -108,6 +108,7 @@ const FunnelHeader = (props) => {
startDate={funnelFilters.startDate}
endDate={funnelFilters.endDate}
onDateChange={onDateChange}
customRangeRight
/>
</div>
</div>

View file

@ -2,7 +2,7 @@ import { connect } from 'react-redux';
import DateRangeDropdown from 'Shared/DateRangeDropdown';
function DateRange (props) {
const { startDate, endDate, rangeValue, className, onDateChange } = props;
const { startDate, endDate, rangeValue, className, onDateChange, customRangeRight=false } = props;
return (
<DateRangeDropdown
@ -12,6 +12,7 @@ function DateRange (props) {
startDate={ startDate }
endDate={ endDate }
className={ className }
customRangeRight={customRangeRight}
/>
);
}

View file

@ -66,7 +66,7 @@ export default class DateRangeDropdown extends React.PureComponent {
}
render() {
const { button = false, className, direction = 'right', customHidden=false, show30Minutes=false } = this.props;
const { customRangeRight, button = false, className, direction = 'right', customHidden=false, show30Minutes=false } = this.props;
const { showDateRangePopup, value, range } = this.state;
let options = getDateRangeOptions(range);
@ -108,7 +108,7 @@ export default class DateRangeDropdown extends React.PureComponent {
</Dropdown>
{
showDateRangePopup &&
<div className={ styles.dateRangePopup }>
<div className={ cn(styles.dateRangePopup, { [styles.customRangeRight] : customRangeRight}) }>
<DateRangePopup
onApply={ this.onApplyDateRange }
onCancel={ this.onCancelDateRange }

View file

@ -62,4 +62,8 @@
.dropdownIcon {
margin-top: 1px;
margin-left: 3px;
}
.customRangeRight {
right: 0 !important;
}