@@ -23,22 +23,21 @@ import { EditorContext } from "comps/editorState";
2323
2424const getStyle = ( style : TextStyleType ) => {
2525 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 } ;
2928 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 ;
3231 background-color : ${ style . background } ;
3332 .markdown-body a {
3433 color : ${ style . links } ;
3534 }
3635 .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 ) } ;
4039 font-family : ${ style . fontFamily } !important ;
41- font-style : ${ style . fontStyle } !important ;
40+ font-style : ${ style . fontStyle } !important ;
4241 font-size : ${ style . textSize } !important ;
4342 // height: ${ heightCalculator ( style . margin ) } ;
4443 h1 {
@@ -76,14 +75,14 @@ const getStyle = (style: TextStyleType) => {
7675const TextContainer = styled . div < {
7776 $type : string ;
7877 $styleConfig : TextStyleType ;
79- $animationStyle : AnimationStyleType ;
78+ $animationStyle :AnimationStyleType ;
8079} > `
8180 height: 100%;
8281 overflow: auto;
8382 margin: 0;
84- ${ ( props ) => props . $animationStyle }
83+ ${ props => props . $animationStyle }
8584 ${ ( 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;" } ;
8786 ${ ( props ) => props . $styleConfig && getStyle ( props . $styleConfig ) }
8887 display: flex;
8988 font-size: 13px;
@@ -128,9 +127,9 @@ let TextTmpComp = (function () {
128127 trans ( 'textShow.text' , { name : '{{currentUser.name}}' } )
129128 ) ,
130129 autoHeight : AutoHeightControl ,
131- type : dropdownControl ( typeOptions , ' markdown' ) ,
130+ type : dropdownControl ( typeOptions , " markdown" ) ,
132131 horizontalAlignment : alignWithJustifyControl ( ) ,
133- verticalAlignment : dropdownControl ( VerticalAlignmentOptions , ' center' ) ,
132+ verticalAlignment : dropdownControl ( VerticalAlignmentOptions , " center" ) ,
134133 style : styleControl ( TextStyle ) ,
135134 animationStyle : styleControl ( AnimationStyle ) ,
136135 margin : MarginControl ,
0 commit comments