Skip to content

Commit ef590f4

Browse files
authored
Merge pull request #805 from Lemoncode/feature/fix-input-stepper-align-right-number
Feature/fix input stepper align right number
2 parents 43fdba9 + af2ffe1 commit ef590f4

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

public/rich-components/input-stepper.svg

Lines changed: 2 additions & 2 deletions
Loading

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,14 +66,14 @@ export const InputWithStepper = forwardRef<any, ShapeProps>((props, ref) => {
6666

6767
{/* Texto del input */}
6868
<Text
69-
x={0} // Alinear a la derecha
69+
x={INPUT_SHAPE.DEFAULT_PADDING}
7070
y={height / 2 - 8} // Centrar verticalmente
71-
width={restrictedWidth}
71+
width={restrictedWidth - INPUT_SHAPE.DEFAULT_PADDING * 2}
7272
text={text}
7373
fontFamily="Arial"
7474
fontSize={16}
7575
fill={textColor}
76-
align="center"
76+
align="left"
7777
wrap="none"
7878
/>
7979

0 commit comments

Comments
 (0)