Skip to content

Commit 4ca0d8f

Browse files
Merge pull request #334 from allen-cell-animated/fix/timepoint-denominator
- Timepoint denominator now matches maximum slider value. - Sorted imports. - Copied a change from #324 which fixes a rendering bug in the slider.
2 parents 38f1769 + 73c8545 commit 4ca0d8f

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

src/aics-image-viewer/assets/styles/noui-slider-override.css

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
%axis-override {
44
/*slider settings*/
5-
.noUi-handle {
5+
.noUi-horizontal .noUi-handle {
66
box-shadow: none;
77
cursor: pointer;
88
pointer-events: inherit;

src/aics-image-viewer/components/AxisClipSliders/index.tsx

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
import React, { useCallback, useEffect, useState } from "react";
2-
import { Button, Tooltip } from "antd";
3-
import { CaretRightOutlined, PauseOutlined } from "@ant-design/icons";
41
import { Volume } from "@aics/volume-viewer";
2+
import { CaretRightOutlined, PauseOutlined } from "@ant-design/icons";
3+
import { Button, Tooltip } from "antd";
4+
import React, { useCallback, useEffect, useState } from "react";
5+
6+
import { ViewMode } from "../../shared/enums";
7+
import { activeAxisMap, AxisName, PerAxis } from "../../shared/types";
8+
import PlayControls from "../../shared/utils/playControls";
9+
import { ViewerSettingUpdater } from "../ViewerStateProvider/types";
510

611
import NumericInput from "../shared/NumericInput";
712
import SmarterSlider from "../shared/SmarterSlider";
813

914
import "./styles.css";
1015

11-
import { ViewMode } from "../../shared/enums";
12-
import { ViewerSettingUpdater } from "../ViewerStateProvider/types";
13-
import { AxisName, PerAxis, activeAxisMap } from "../../shared/types";
14-
import PlayControls from "../../shared/utils/playControls";
15-
1616
const AXES: AxisName[] = ["x", "y", "z"];
1717

1818
type SliderRowProps = {
@@ -92,7 +92,7 @@ const SliderRow: React.FC<SliderRowProps> = ({
9292
</>
9393
)}
9494
{" / "}
95-
{max}
95+
{max - 1}
9696
</span>
9797
)}
9898
</span>

0 commit comments

Comments
 (0)