Skip to content

Commit 7129ccf

Browse files
committed
line height removed from single liner input fields
1 parent a739e2e commit 7129ccf

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

client/packages/lowcoder/src/comps/comps/numberInputComp/numberInputComp.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ const getStyle = (style: InputLikeStyleType) => {
6060
return css`
6161
border-radius: ${style.radius};
6262
border-width:${style.borderWidth} !important;
63-
line-height: ${style.lineHeight} !important;
63+
// line-height: ${style.lineHeight} !important;
6464
// still use antd style when disabled
6565
&:not(.ant-input-number-disabled) {
6666
color: ${style.text};

client/packages/lowcoder/src/comps/comps/textInputComp/textInputConstants.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ export function getStyle(style: InputLikeStyleType, labelStyle?: LabelStyleType)
252252
text-decoration:${style.textDecoration};
253253
background-color: ${style.background};
254254
border-color: ${style.border};
255-
line-height: ${style.lineHeight};
255+
// line-height: ${style.lineHeight};
256256
257257
&:focus,
258258
&.ant-input-affix-wrapper-focused {

client/packages/lowcoder/src/comps/controls/labelControl.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ const Label = styled.span<{ $border: boolean, $labelStyle: LabelStyleType, $vali
108108
border-radius:${(props) => props.$labelStyle.radius};
109109
padding:${(props) => props.$labelStyle.padding};
110110
margin:${(props) => props.$labelStyle.margin};
111-
line-height:${(props) => props.$labelStyle.lineHeight};
111+
// line-height:${(props) => props.$labelStyle.lineHeight};
112112
width: fit-content;
113113
user-select: text;
114114
white-space: nowrap;

client/packages/lowcoder/src/comps/controls/styleControlConstants.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -1039,7 +1039,7 @@ export const InputLikeStyle = [
10391039
getStaticBackground(SURFACE_COLOR),
10401040
BOXSHADOW,
10411041
BOXSHADOWCOLOR,
1042-
...STYLING_FIELDS_SEQUENCE.filter(style=>style.name!=='rotation'),
1042+
...STYLING_FIELDS_SEQUENCE.filter((style)=>style.name!=='rotation' && style.name!=='lineHeight'),
10431043
...ACCENT_VALIDATE,
10441044
] as const;
10451045

@@ -1138,6 +1138,7 @@ export const startButtonStyle = [
11381138
export const LabelStyle = [
11391139
...replaceAndMergeMultipleStyles([...InputLikeStyle], "text", [LABEL]).filter(
11401140
(style) => style.name !== "radius" && style.name !== "background" && style.name!=='rotation' && style.name !== "boxShadow"&&style.name!=='boxShadowColor'
1141+
&&style.name!=='lineHeight'
11411142
),
11421143
];
11431144

0 commit comments

Comments
 (0)