Skip to content

Commit 59632b6

Browse files
committed
fix with
1 parent 989e282 commit 59632b6

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

src/common/components/mock-components/front-rich-components/input-stepper.tsx

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import { ShapeType } from '@/core/model';
77
import { ShapeProps } from '../shape.model';
88
import { useShapeProps } from '../../shapes/use-shape-props.hook';
99
import { INPUT_SHAPE } from '../front-components/shape.const';
10-
import { i } from 'vitest/dist/reporters-yx5ZTtEV.js';
1110

1211
// Size restrictions (igual patrón que file-tree)
1312
export const inputStepperShapeRestrictions: ShapeSizeRestrictions = {
@@ -48,13 +47,15 @@ export const InputWithStepper = forwardRef<any, ShapeProps>((props, ref) => {
4847
INPUT_SHAPE
4948
);
5049

50+
const { width: restrictedWidth } = restrictedSize;
51+
5152
return (
5253
<Group {...commonGroupProps} {...shapeProps}>
5354
{/* Caja del input */}
5455
<Rect
5556
x={0}
5657
y={0}
57-
width={inputWidth / 2} // Reducir ancho a la mitad
58+
width={restrictedWidth}
5859
height={height}
5960
fill={fill}
6061
stroke={stroke}
@@ -75,13 +76,13 @@ export const InputWithStepper = forwardRef<any, ShapeProps>((props, ref) => {
7576
/>
7677

7778
{/* Botón de incremento (flecha arriba) */}
78-
<Group x={inputWidth / 2} y={0}>
79+
<Group x={inputWidth} y={0}>
7980
<Rect
8081
x={0}
8182
y={0}
8283
width={30}
8384
height={buttonHeight}
84-
fill={fill}
85+
fill="lightgrey"
8586
stroke={stroke}
8687
strokeWidth={strokeWidth}
8788
dash={strokeStyle}
@@ -97,13 +98,13 @@ export const InputWithStepper = forwardRef<any, ShapeProps>((props, ref) => {
9798
</Group>
9899

99100
{/* Botón de decremento (flecha abajo) */}
100-
<Group x={inputWidth / 2} y={buttonHeight}>
101+
<Group x={inputWidth} y={buttonHeight}>
101102
<Rect
102103
x={0}
103104
y={0}
104105
width={30}
105106
height={buttonHeight}
106-
fill={fill}
107+
fill="lightgrey"
107108
stroke={stroke}
108109
strokeWidth={strokeWidth}
109110
dash={strokeStyle}

0 commit comments

Comments
 (0)