Skip to content

Commit

Permalink
fix: executions bar chart popover alignment (#977)
Browse files Browse the repository at this point in the history
* fix: alignment of popover

* chore: remove unused prop
  • Loading branch information
topliceanurazvan authored Dec 14, 2023
1 parent f9639a7 commit 57c31d9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ type BarConfigPure = BarConfig & {
};

const BarWithTooltipPure: React.FC<BarConfigPure> = memo(props => {
const {width, height, color, status, duration, name, startTime, chartHeight, hoverColor, date, onSelect} = props;
const {width, height, color, status, duration, name, startTime, hoverColor, date, onSelect} = props;

const onBarClicked = useCallback(() => onSelect(name), [onSelect, name]);

Expand All @@ -52,7 +52,7 @@ const BarWithTooltipPure: React.FC<BarConfigPure> = memo(props => {
);

return (
<Popover content={popoverContent} align={{offset: [0, chartHeight - height - tooltipYOffsetMargin]}}>
<Popover content={popoverContent} align={{offset: [0, tooltipYOffsetMargin]}}>
<ClickableBar style={{height, width}} $color={color} hoverColor={hoverColor} onClick={onBarClicked}>
{date ? <BarDate $height={height}>{date}</BarDate> : undefined}
</ClickableBar>
Expand Down

0 comments on commit 57c31d9

Please sign in to comment.