Skip to content

Commit

Permalink
Remove ticks and display min max labels in EuiDualRange slider (#369)
Browse files Browse the repository at this point in the history
  • Loading branch information
deadlycoconuts authored Mar 4, 2024
1 parent b4ff131 commit 80ea310
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions ui/src/router/components/form/components/ResourcesPanel.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ import {
import { FormLabelWithToolTip } from "../../../../components/form/label_with_tooltip/FormLabelWithToolTip";
import { useOnChangeHandler } from "../../../../components/form/hooks/useOnChangeHandler";

const maxTicks = 20;

export const ResourcesPanel = ({
resourcesConfig,
onChangeHandler,
Expand Down Expand Up @@ -90,10 +88,8 @@ export const ResourcesPanel = ({
fullWidth
min={0}
max={maxAllowedReplica}
// This component only allows up to 20 ticks to be displayed at the slider
tickInterval={Math.ceil((maxAllowedReplica + 1) / maxTicks)}
showInput
showTicks
showLabels
value={[
resourcesConfig.min_replica || 0,
resourcesConfig.max_replica || 0,
Expand Down

0 comments on commit 80ea310

Please sign in to comment.