Skip to content

Commit 3620893

Browse files
fix: margin for peaks label should not have max in general form (#4038)
Closes: #4015
1 parent a0b9cfb commit 3620893

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/component/1d/peaks/PeakAnnotationsSpreadMode.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ function PeakAnnotationsSpreadMode(props: PeakAnnotationsSpreadModeProps) {
8080
height,
8181
spectrumKey,
8282
} = props;
83+
8384
const [ref, { height: boxSizeHeight } = { height: 0 }] = useResizeObserver();
8485
const { marginTop, isDragActive, onPointerDown } = usePeaksPosition();
8586

src/component/modal/setting/tanstack_general_settings/tabs/general_tab.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,7 @@ export const GeneralTab = withForm({
8181
<field.NumericInput
8282
label="Margin top"
8383
min={0}
84-
max={1}
85-
stepSize={0.1}
84+
stepSize={1}
8685
rightElement={<Tag>px</Tag>}
8786
/>
8887
)}

0 commit comments

Comments
 (0)