Skip to content

Commit 10671f6

Browse files
committed
feat: update minWidth to use BASIC_SHAPE.DEFAULT_MIN_WIDTH in various shape components
1 parent cba0681 commit 10671f6

6 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/common/components/mock-components/front-components/input-shape.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { useShapeProps } from '../../shapes/use-shape-props.hook';
88
import { useGroupShapeProps } from '../mock-components.utils';
99

1010
const inputShapeRestrictions: ShapeSizeRestrictions = {
11-
minWidth: 38,
11+
minWidth: INPUT_SHAPE.DEFAULT_MIN_WIDTH,
1212
minHeight: 38,
1313
maxWidth: -1,
1414
maxHeight: 38,

src/common/components/mock-components/front-components/textarea-shape.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { useShapeProps } from '../../shapes/use-shape-props.hook';
88
import { useGroupShapeProps } from '../mock-components.utils';
99

1010
const textAreaShapeRestrictions: ShapeSizeRestrictions = {
11-
minWidth: 70,
11+
minWidth: BASIC_SHAPE.DEFAULT_MIN_WIDTH,
1212
minHeight: 44,
1313
maxWidth: -1,
1414
maxHeight: -1,

src/common/components/mock-components/front-low-wireframes-components/paragraph-scribbled-shape/paragraph-scribbled-shape.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { MIN_LINE_HEIGHT } from './paragraph-scribbled.const';
1010
import { calculateParagraphPaths } from './paragraph-scribbled.business';
1111

1212
const paragraphScribbledShapeRestrictions: ShapeSizeRestrictions = {
13-
minWidth: 100,
13+
minWidth: BASIC_SHAPE.DEFAULT_MIN_WIDTH,
1414
minHeight: MIN_LINE_HEIGHT,
1515
maxWidth: -1,
1616
maxHeight: -1,

src/common/components/mock-components/front-low-wireframes-components/text-scribbled-shape/text-scribbled-shape.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { calculatePath } from './text-scribbled.business';
99
import { fitSizeToShapeSizeRestrictions } from '@/common/utils/shapes';
1010

1111
const textScribbledShapeRestrictions: ShapeSizeRestrictions = {
12-
minWidth: 100,
12+
minWidth: BASIC_SHAPE.DEFAULT_MIN_WIDTH,
1313
minHeight: 45,
1414
maxWidth: -1,
1515
maxHeight: -1,

src/common/components/mock-components/front-text-components/paragraph-text-shape.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { useShapeProps } from '../../shapes/use-shape-props.hook';
88
import { useGroupShapeProps } from '../mock-components.utils';
99

1010
const paragraphSizeRestrictions: ShapeSizeRestrictions = {
11-
minWidth: 20,
11+
minWidth: BASIC_SHAPE.DEFAULT_MIN_WIDTH,
1212
minHeight: 20,
1313
maxWidth: -1,
1414
maxHeight: -1,

src/common/components/mock-components/front-text-components/smalltext-shape.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { useGroupShapeProps } from '../mock-components.utils';
99
import { useResizeOnFontSizeChange } from './front-text-hooks/resize-fontsize-change.hook';
1010

1111
const smalltextSizeRestrictions: ShapeSizeRestrictions = {
12-
minWidth: 40,
12+
minWidth: BASIC_SHAPE.DEFAULT_MIN_WIDTH,
1313
minHeight: 20,
1414
maxWidth: -1,
1515
maxHeight: -1,

0 commit comments

Comments
 (0)