mirror of
https://github.com/Radarr/Radarr.git
synced 2024-09-11 20:12:41 +02:00
parent
f2efdd8b6d
commit
b56043504b
@ -14,6 +14,7 @@ import styles from './QualityDefinition.css';
|
|||||||
|
|
||||||
const MIN = 0;
|
const MIN = 0;
|
||||||
const MAX = 400;
|
const MAX = 400;
|
||||||
|
const MIN_DISTANCE = 1;
|
||||||
|
|
||||||
const slider = {
|
const slider = {
|
||||||
min: MIN,
|
min: MIN,
|
||||||
@ -176,7 +177,7 @@ class QualityDefinition extends Component {
|
|||||||
min={slider.min}
|
min={slider.min}
|
||||||
max={slider.max}
|
max={slider.max}
|
||||||
step={slider.step}
|
step={slider.step}
|
||||||
minDistance={3}
|
minDistance={MIN_DISTANCE * 3}
|
||||||
value={[sliderMinSize, sliderPreferredSize, sliderMaxSize]}
|
value={[sliderMinSize, sliderPreferredSize, sliderMaxSize]}
|
||||||
withTracks={true}
|
withTracks={true}
|
||||||
allowCross={false}
|
allowCross={false}
|
||||||
@ -250,7 +251,7 @@ class QualityDefinition extends Component {
|
|||||||
name={`${id}.min`}
|
name={`${id}.min`}
|
||||||
value={minSize || MIN}
|
value={minSize || MIN}
|
||||||
min={MIN}
|
min={MIN}
|
||||||
max={preferredSize ? preferredSize - 5 : MAX - 5}
|
max={preferredSize ? preferredSize - MIN_DISTANCE : MAX - MIN_DISTANCE}
|
||||||
step={0.1}
|
step={0.1}
|
||||||
isFloat={true}
|
isFloat={true}
|
||||||
onChange={this.onMinSizeChange}
|
onChange={this.onMinSizeChange}
|
||||||
@ -263,9 +264,9 @@ class QualityDefinition extends Component {
|
|||||||
<NumberInput
|
<NumberInput
|
||||||
className={styles.sizeInput}
|
className={styles.sizeInput}
|
||||||
name={`${id}.min`}
|
name={`${id}.min`}
|
||||||
value={preferredSize || MAX - 5}
|
value={preferredSize || MAX - MIN_DISTANCE}
|
||||||
min={MIN}
|
min={MIN}
|
||||||
max={maxSize ? maxSize - 5 : MAX - 5}
|
max={maxSize ? maxSize - MIN_DISTANCE : MAX - MIN_DISTANCE}
|
||||||
step={0.1}
|
step={0.1}
|
||||||
isFloat={true}
|
isFloat={true}
|
||||||
onChange={this.onPreferredSizeChange}
|
onChange={this.onPreferredSizeChange}
|
||||||
@ -279,7 +280,7 @@ class QualityDefinition extends Component {
|
|||||||
className={styles.sizeInput}
|
className={styles.sizeInput}
|
||||||
name={`${id}.max`}
|
name={`${id}.max`}
|
||||||
value={maxSize || MAX}
|
value={maxSize || MAX}
|
||||||
min={minSize + 5}
|
min={minSize + MIN_DISTANCE}
|
||||||
max={MAX}
|
max={MAX}
|
||||||
step={0.1}
|
step={0.1}
|
||||||
isFloat={true}
|
isFloat={true}
|
||||||
|
Loading…
Reference in New Issue
Block a user