fix: funnel calendar position
This commit is contained in:
parent
a514e42a85
commit
571a08aa54
4 changed files with 9 additions and 3 deletions
|
|
@ -108,6 +108,7 @@ const FunnelHeader = (props) => {
|
|||
startDate={funnelFilters.startDate}
|
||||
endDate={funnelFilters.endDate}
|
||||
onDateChange={onDateChange}
|
||||
customRangeRight
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -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}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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 }
|
||||
|
|
|
|||
|
|
@ -62,4 +62,8 @@
|
|||
.dropdownIcon {
|
||||
margin-top: 1px;
|
||||
margin-left: 3px;
|
||||
}
|
||||
|
||||
.customRangeRight {
|
||||
right: 0 !important;
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue