1
1
import React from "react" ;
2
2
import ModalUi from "../../primitives/ModalUi" ;
3
3
import { fontColorArr , fontsizeArr } from "../../constant/Utils" ;
4
- import { themeColor } from "../../constant/const" ;
5
4
6
5
function TextFontSetting ( props ) {
7
6
return (
8
7
< ModalUi
9
8
headerColor = { "#dc3545" }
10
9
isOpen = { props . isTextSetting }
10
+ reduceWidth = { "max-w-[350px]" }
11
11
title = { "Text field" }
12
12
handleClose = { ( ) => {
13
13
props . setIsTextSetting ( false ) ;
14
14
} }
15
15
>
16
- < div style = { { height : "100%" , padding : 20 } } >
17
- < div className = "flex items-center gap-4 " >
18
- < span > Font size: </ span >
16
+ < div className = "h-full p-[20px]" >
17
+ < div className = "flex items-center" >
18
+ < span > Font size:</ span >
19
19
< select
20
- className = "border-[1px] border-gray-300 px-[5px] "
20
+ className = "ml-[7px] op-select op-select-bordered op-select-sm focus:outline-none hover: border-base-content text-xs "
21
21
value = {
22
22
props . fontSize || props . currWidgetsDetails ?. options ?. fontSize
23
23
}
24
24
onChange = { ( e ) => props . setFontSize ( e . target . value ) }
25
25
>
26
26
{ fontsizeArr . map ( ( size , ind ) => {
27
27
return (
28
- < option style = { { fontSize : " 13px" } } value = { size } key = { ind } >
28
+ < option className = "text-[ 13px]" value = { size } key = { ind } >
29
29
{ size }
30
30
</ option >
31
31
) ;
32
32
} ) }
33
33
</ select >
34
- < div className = "flex flex-row gap-1" >
34
+ < div className = "flex flex-row gap-1 items-center ml-4 " >
35
35
< span > color: </ span >
36
36
< select
37
37
value = {
38
38
props . fontColor || props . currWidgetsDetails ?. options ?. fontColor
39
39
}
40
40
onChange = { ( e ) => props . setFontColor ( e . target . value ) }
41
- className = "border-[1px] border-gray-300 px-[2px] ml-[10px] "
41
+ className = "ml-[7px] op-select op-select-bordered op-select-sm focus:outline-none hover:border-base-content text-xs "
42
42
>
43
43
{ fontColorArr . map ( ( color , ind ) => {
44
44
return (
@@ -54,17 +54,16 @@ function TextFontSetting(props) {
54
54
props . fontColor ||
55
55
props . currWidgetsDetails ?. options ?. fontColor
56
56
} }
57
- className = "w-5 h-[19px]"
57
+ className = "w-5 h-[19px] ml-1 "
58
58
> </ span >
59
59
</ div >
60
60
</ div >
61
61
62
- < div className = "h-[1px] bg-[#9f9f9f] w-full mt-[15px] mb-[15px] " > </ div >
62
+ < div className = "h-[1px] bg-[#9f9f9f] w-full mt-[15px] mb-2 " > </ div >
63
63
< button
64
64
onClick = { ( ) => props . handleSaveFontSize ( ) }
65
- style = { { background : themeColor } }
66
65
type = "button"
67
- className = "finishBtn "
66
+ className = "op-btn op-btn-primary mt-2 "
68
67
>
69
68
save
70
69
</ button >
0 commit comments