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