mirror of
https://github.com/scratchfoundation/scratch-paint.git
synced 2024-12-22 13:32:28 -05:00
Limit stroke width to 100 (#796)
This commit is contained in:
parent
38ca8b9d3b
commit
1a8178808a
3 changed files with 4 additions and 4 deletions
|
@ -45,11 +45,11 @@ Edited to add input-range-small
|
|||
}
|
||||
|
||||
.input-small {
|
||||
width: 3rem;
|
||||
width: 3rem;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.input-small-range {
|
||||
width: 3.75rem;
|
||||
width: 4rem;
|
||||
text-align: center;
|
||||
}
|
||||
|
|
|
@ -3,7 +3,7 @@ import {CHANGE_SELECTED_ITEMS} from './selected-items';
|
|||
import {getColorsFromSelection} from '../helper/style-path';
|
||||
|
||||
const CHANGE_STROKE_WIDTH = 'scratch-paint/stroke-width/CHANGE_STROKE_WIDTH';
|
||||
const MAX_STROKE_WIDTH = 800;
|
||||
const MAX_STROKE_WIDTH = 100;
|
||||
const initialState = 4;
|
||||
|
||||
const reducer = function (state, action) {
|
||||
|
|
|
@ -13,7 +13,7 @@ test('initialState', () => {
|
|||
|
||||
test('changestrokeWidth', () => {
|
||||
let defaultState;
|
||||
const newstrokeWidth = 234;
|
||||
const newstrokeWidth = 23;
|
||||
|
||||
expect(strokeWidthReducer(defaultState /* state */, changeStrokeWidth(newstrokeWidth) /* action */))
|
||||
.toEqual(newstrokeWidth);
|
||||
|
|
Loading…
Reference in a new issue