@@ -23,22 +23,21 @@ import { EditorContext } from "comps/editorState";
23
23
24
24
const getStyle = ( style :TextStyleType ) => {
25
25
return css `
26
- border-radius : ${ style . radius ?style . radius :'4px' } ;
27
- border : ${ style . borderWidth ?style . borderWidth :'0px' } solid
28
- ${ style . border } ;
26
+ border-radius : ${ ( style . radius ?style . radius :"4px" ) } ;
27
+ border : ${ ( style . borderWidth ?style . borderWidth :"0px" ) } solid${ style . border } ;
29
28
color : ${ style . text } ;
30
- text-transform : ${ style . textTransform } !important ;
31
- text-decoration : ${ style . textDecoration } !important ;
29
+ text-transform : ${ style . textTransform } !important ;
30
+ text-decoration : ${ style . textDecoration } !important ;
32
31
background-color : ${ style . background } ;
33
32
.markdown-body a {
34
33
color : ${ style . links } ;
35
34
}
36
35
.markdown-body {
37
- margin : ${ style . margin } !important ;
38
- padding : ${ style . padding } ;
39
- width : ${ widthCalculator ( style . margin ) } ;
36
+ margin : ${ style . margin } !important ;
37
+ padding : ${ style . padding } ;
38
+ width : ${ widthCalculator ( style . margin ) } ;
40
39
font-family : ${ style . fontFamily } !important ;
41
- font-style : ${ style . fontStyle } !important ;
40
+ font-style : ${ style . fontStyle } !important ;
42
41
font-size : ${ style . textSize } !important ;
43
42
// height:${ heightCalculator ( style . margin ) } ;
44
43
h1 {
@@ -76,14 +75,14 @@ const getStyle = (style: TextStyleType) => {
76
75
const TextContainer = styled . div < {
77
76
$type :string ;
78
77
$styleConfig :TextStyleType ;
79
- $animationStyle :AnimationStyleType ;
78
+ $animationStyle :AnimationStyleType ;
80
79
} > `
81
80
height: 100%;
82
81
overflow: auto;
83
82
margin: 0;
84
- ${ ( props ) => props . $animationStyle }
83
+ ${ props => props . $animationStyle }
85
84
${ ( props ) =>
86
- props . $type === ' text' && ' white-space:break-spaces;line-height: 1.9;' } ;
85
+ props . $type === " text" && " white-space:break-spaces;line-height: 1.9;" } ;
87
86
${ ( props ) => props . $styleConfig && getStyle ( props . $styleConfig ) }
88
87
display: flex;
89
88
font-size: 13px;
@@ -128,9 +127,9 @@ let TextTmpComp = (function () {
128
127
trans ( 'textShow.text' , { name :'{{currentUser.name}}' } )
129
128
) ,
130
129
autoHeight :AutoHeightControl ,
131
- type :dropdownControl ( typeOptions , ' markdown' ) ,
130
+ type :dropdownControl ( typeOptions , " markdown" ) ,
132
131
horizontalAlignment :alignWithJustifyControl ( ) ,
133
- verticalAlignment :dropdownControl ( VerticalAlignmentOptions , ' center' ) ,
132
+ verticalAlignment :dropdownControl ( VerticalAlignmentOptions , " center" ) ,
134
133
style :styleControl ( TextStyle ) ,
135
134
animationStyle :styleControl ( AnimationStyle ) ,
136
135
margin :MarginControl ,