File tree 1 file changed +11
-3
lines changed
client/packages/lowcoder/src/comps/comps 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ const EventOptions = [clickEvent] as const;
28
28
const getStyle = ( style : TextStyleType ) => {
29
29
return css `
30
30
border-radius : ${ ( style . radius ? style . radius : "4px" ) } ;
31
- border : ${ ( style . borderWidth ? style . borderWidth : "0px" ) } solid ${ style . border } ;
31
+ border : ${ ( style . borderWidth ? style . borderWidth : "0px" ) } ${ ( style . borderStyle ? style . borderStyle : " solid" ) } ${ style . border } ;
32
32
color : ${ style . text } ;
33
33
text-transform : ${ style . textTransform } !important ;
34
34
text-decoration : ${ style . textDecoration } !important ;
@@ -86,10 +86,18 @@ const TextContainer = styled.div<{
86
86
margin: 0;
87
87
${ props => props . $animationStyle }
88
88
${ ( props ) =>
89
- props . $type === "text" && "white-space:break-spaces;line-height: 1.9;" } ;
89
+ props . $type === "text" && `
90
+ white-space:break-spaces;
91
+ line-height: 1.9;
92
+ font-size: ${ props . $styleConfig . textSize } ;
93
+ font-weight: ${ props . $styleConfig . textWeight } ;
94
+ font-style: ${ props . $styleConfig . fontStyle } ;
95
+ font-family: ${ props . $styleConfig . fontFamily } ;
96
+ margin: ${ props . $styleConfig . margin } ;
97
+ padding: ${ props . $styleConfig . padding } ;
98
+ ` } ;
90
99
${ ( props ) => props . $styleConfig && getStyle ( props . $styleConfig ) }
91
100
display: flex;
92
- font-size: ${ ( props ) => props . $styleConfig . textSize } ;
93
101
${ markdownCompCss } ;
94
102
overflow-wrap: anywhere;
95
103
.markdown-body {
You can’t perform that action at this time.
0 commit comments