Skip to content

Commit aa024d6

Browse files
authored
Merge pull request #783 from Lemoncode/feature/#742-time-component-same-height-as-input-component
feature/#742-time-component-same-height-as-input-component
2 parents fa3003d + e60228d commit aa024d6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ import disabledClockIconSrc from '/icons/clock-disabled.svg';
1313

1414
const timepickerInputShapeRestrictions: ShapeSizeRestrictions = {
1515
minWidth: 100,
16-
minHeight: 50,
16+
minHeight: 38,
1717
maxWidth: -1,
18-
maxHeight: 50,
18+
maxHeight: 38,
1919
defaultWidth: 220,
20-
defaultHeight: 50,
20+
defaultHeight: 38,
2121
};
2222

2323
const shapeType: ShapeType = 'timepickerinput';
@@ -114,7 +114,7 @@ export const TimepickerInputShape = forwardRef<any, ShapeProps>(
114114
<Text
115115
text={text}
116116
x={10}
117-
y={(restrictedHeight - fontSize) / 2 + 2}
117+
y={(restrictedHeight - fontSize) / 2}
118118
width={availableWidth}
119119
fontFamily={BASIC_SHAPE.DEFAULT_FONT_FAMILY}
120120
fontSize={BASIC_SHAPE.DEFAULT_FONT_SIZE}

0 commit comments

Comments
 (0)