Skip to content

Commit

Permalink
MetricChart/MetricTable - reversePerformer fix, txcosts scale fix
Browse files Browse the repository at this point in the history
  • Loading branch information
manishiwa committed Nov 7, 2024
1 parent a7eedb3 commit 25873fb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions components/metric/MetricChart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1047,7 +1047,7 @@ function MetricChart({
return (
<div className="relative w-full h-full">
<div className="relative flex items-end h-[30px]">
{log_default === true && (
{log_default === true && selectedScale === "absolute" && (
<>
<div className="absolute pl-[60px]">
<YAxisScaleControls />
Expand All @@ -1065,7 +1065,7 @@ function MetricChart({
</div>
<div id="content-container" className="relative w-full h-full overflow-visible" ref={containerRef}>
<div
className={`absolute w-[2px] bottom-[71px] left-[60px] ${log_default === true ? "-top-[23px]" : "top-0"}`}
className={`absolute w-[2px] bottom-[71px] left-[60px] ${log_default === true && selectedScale === "absolute" ? "-top-[23px]" : "top-0"}`}
style={{
backgroundImage: `url("data:image/svg+xml,%3Csvg width='2' height='396' viewBox='0 0 2 396' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg clip-path='url(%23clip0_16047_48574)'%3E%3Cpath opacity='0.5' d='M1.00002 396L1 0' stroke='%235A6462' stroke-width='2' stroke-dasharray='3 6'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='clip0_16047_48574'%3E%3Crect width='2' height='396' fill='white'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E%0A")`,
}}
Expand Down
2 changes: 1 addition & 1 deletion components/metric/MetricChartControlsContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ export const MetricChartControlsProvider = ({
selectedTimespansByTimeInterval,
//@ts-ignore
setSelectedTimespansByTimeInterval,
selectedScale,
selectedScale: metric_id === "txcosts" ? "absolute" : selectedScale,
setSelectedScale,
selectedYAxisScale: selectedYAxisScale,
setSelectedYAxisScale: setSelectedYAxisScale,
Expand Down

0 comments on commit 25873fb

Please sign in to comment.