@@ -139,8 +139,7 @@ function PlaceholderType(props) {
139
139
140
140
const ExampleCustomInput = forwardRef ( ( { value, onClick } , ref ) => (
141
141
< div
142
- className = { `${ selectWidgetCls } overflow-hidden` }
143
- style = { { fontSize : calculateFontSize ( ) } }
142
+ className = { `${ selectWidgetCls } text-[12px] overflow-hidden` }
144
143
onClick = { onClick }
145
144
ref = { ref }
146
145
>
@@ -171,12 +170,6 @@ function PlaceholderType(props) {
171
170
}
172
171
// eslint-disable-next-line react-hooks/exhaustive-deps
173
172
} , [ type ] ) ;
174
-
175
- const calculateFontSize = ( ) => {
176
- const fontSize = 10 + Math . min ( props . pos . Width , props . pos . Height ) * 0.1 ;
177
- const size = fontSize ? fontSize : 12 ;
178
- return size + "px" ;
179
- } ;
180
173
//function for show checked checkbox
181
174
const selectCheckbox = ( ind ) => {
182
175
const res = props . pos . options ?. response ;
@@ -426,7 +419,8 @@ function PlaceholderType(props) {
426
419
fontSize : props . pos . options ?. fontSize
427
420
? props . pos . options ?. fontSize + "px"
428
421
: "12px" ,
429
- color : props . pos . options ?. fontColor || "black"
422
+ color : props . pos . options ?. fontColor || "black" ,
423
+ overflow : "hidden"
430
424
} }
431
425
>
432
426
< span > { type } </ span >
@@ -465,10 +459,7 @@ function PlaceholderType(props) {
465
459
} ) }
466
460
</ select >
467
461
) : (
468
- < div
469
- className = { selectWidgetCls }
470
- style = { { fontSize : calculateFontSize ( ) } }
471
- >
462
+ < div className = "text-[12px] overflow-hidden" >
472
463
{ props . pos ?. options ?. name ? props . pos . options . name : type }
473
464
</ div >
474
465
) ;
@@ -527,7 +518,8 @@ function PlaceholderType(props) {
527
518
fontSize : props . pos . options ?. fontSize
528
519
? props . pos . options ?. fontSize + "px"
529
520
: "12px" ,
530
- color : props . pos . options ?. fontColor || "black"
521
+ color : props . pos . options ?. fontColor || "black" ,
522
+ fontFamily : "Arial, sans-serif"
531
523
} }
532
524
>
533
525
< span > { type } </ span >
@@ -569,7 +561,9 @@ function PlaceholderType(props) {
569
561
fontSize : props . pos . options ?. fontSize
570
562
? props . pos . options ?. fontSize + "px"
571
563
: "12px" ,
572
- color : props . pos . options ?. fontColor || "black"
564
+ color : props . pos . options ?. fontColor || "black" ,
565
+ overflow : "hidden" ,
566
+ fontFamily : "Arial, sans-serif"
573
567
} }
574
568
>
575
569
< span > { type } </ span >
@@ -611,7 +605,8 @@ function PlaceholderType(props) {
611
605
fontSize : props . pos . options ?. fontSize
612
606
? props . pos . options ?. fontSize + "px"
613
607
: "12px" ,
614
- color : props . pos . options ?. fontColor || "black"
608
+ color : props . pos . options ?. fontColor || "black" ,
609
+ fontFamily : "Arial, sans-serif"
615
610
} }
616
611
>
617
612
< span > { type } </ span >
@@ -677,7 +672,7 @@ function PlaceholderType(props) {
677
672
/>
678
673
</ div >
679
674
) : (
680
- < div className = "text-[12px] text-black uppercase items-center" >
675
+ < div className = "text-[12px] text-black items-center overflow-hidden " >
681
676
< span >
682
677
{ props . selectDate
683
678
? props . selectDate ?. format
@@ -732,7 +727,8 @@ function PlaceholderType(props) {
732
727
fontSize : props . pos . options ?. fontSize
733
728
? props . pos . options ?. fontSize + "px"
734
729
: "12px" ,
735
- color : props . pos . options ?. fontColor || "black"
730
+ color : props . pos . options ?. fontColor || "black" ,
731
+ fontFamily : "Arial, sans-serif"
736
732
} }
737
733
cols = "50"
738
734
/>
@@ -742,7 +738,8 @@ function PlaceholderType(props) {
742
738
fontSize : props . pos . options ?. fontSize
743
739
? props . pos . options ?. fontSize + "px"
744
740
: "12px" ,
745
- color : props . pos . options ?. fontColor || "black"
741
+ color : props . pos . options ?. fontColor || "black" ,
742
+ fontFamily : "Arial, sans-serif"
746
743
} }
747
744
>
748
745
< span > { type } </ span >
@@ -801,6 +798,7 @@ function PlaceholderType(props) {
801
798
} }
802
799
className = { textWidgetCls }
803
800
style = { {
801
+ fontFamily : "Arial, sans-serif" ,
804
802
fontSize : props . pos . options ?. fontSize
805
803
? props . pos . options ?. fontSize + "px"
806
804
: "12px" ,
0 commit comments