Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit a62f1f2

Browse files
Merge pull request lowcoder-org#1082 from MenamAfzal/remove/lineHeight
line height removed from single liner input fields
2 parents 1bf4a84 + 7129ccf commit a62f1f2

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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 2 additions & 1 deletion
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)

AltStyle によって変換されたページ (->オリジナル) /