Skip to content

Commit 0c3e340

Browse files
committed
rotation added to label
1 parent cebca5c commit 0c3e340

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,9 +117,11 @@ const Label = styled.span<{
117117
!!props.$validateStatus && props?.$validateStatus === 'error'
118118
? props.$labelStyle.validate
119119
: props.$labelStyle.label} !important;
120-
${(props) =>
121-
`border:${props.$labelStyle.borderWidth} ${props.$labelStyle.borderStyle} ${!!props.$validateStatus && props?.$validateStatus === 'error' ? props.$labelStyle.validate : props.$labelStyle.border};`}
120+
${(props) => {
121+
return `border:${props.$labelStyle.borderWidth} ${props.$labelStyle.borderStyle} ${!!props.$validateStatus && props?.$validateStatus === 'error' ? props.$labelStyle.validate : props.$labelStyle.border};`;
122+
}}
122123
border-radius:${(props) => props.$labelStyle.radius};
124+
rotate: ${(props) => props.$labelStyle.rotation};
123125
padding: ${(props) => props.$labelStyle.padding};
124126
margin: ${(props) => props.$labelStyle.margin};
125127
width: fit-content;

0 commit comments

Comments
 (0)