File tree 3 files changed +22
-5
lines changed
components/RichTextEditor
3 files changed +22
-5
lines changed Original file line number Diff line number Diff line change 3
3
color : var (--main-text-color );
4
4
font-size : var (--font-regular );
5
5
border-radius : 8px ;
6
- padding-top : 1 rem ;
6
+ padding-top : 0.5 rem ;
7
7
margin-top : 1rem ;
8
8
width : 400px ;
9
+ padding-left : 0.5rem ;
10
+ box-sizing : border-box;
9
11
}
10
12
11
13
.ProseMirror {
Original file line number Diff line number Diff line change @@ -23,6 +23,9 @@ const PopupComponent = ({
23
23
const sizeClass = validSizes . includes ( popupSize . toLowerCase ( ) )
24
24
? styles [ popupSize . toLowerCase ( ) ]
25
25
: "" ;
26
+ const sizeClassContent = validSizes . includes ( popupSize . toLowerCase ( ) )
27
+ ? styles [ popupSize . toLowerCase ( ) + 'Content' ]
28
+ : "" ;
26
29
const centeredClass = isReal ? styles . centered : "" ;
27
30
28
31
const handleClose = ( ) => {
@@ -63,7 +66,7 @@ const PopupComponent = ({
63
66
/>
64
67
</ div >
65
68
) }
66
- < div className = { `${ styles . popupContentContainer } ` } >
69
+ < div className = { `${ styles . popupContentContainer } ${ sizeClassContent } ` } >
67
70
< div className = { styles . popupContent } style = { { color : textColor } } >
68
71
< ReactMarkdown > { content } </ ReactMarkdown >
69
72
</ div >
@@ -73,7 +76,7 @@ const PopupComponent = ({
73
76
style = { {
74
77
backgroundColor : buttonBackgroundColor ,
75
78
color : buttonTextColor ,
76
- marginRight : "1rem" ,
79
+ borderRadius : '8px'
77
80
} }
78
81
text = { previewBtnText }
79
82
onClick = { handleButtonClick } // Add onClick handler
Original file line number Diff line number Diff line change 8
8
}
9
9
10
10
.popupContent {
11
- padding : 20px 25px ;
12
11
color : var (--second-text-color );
13
12
font-size : var (--font-regular );
14
13
}
38
37
display : flex;
39
38
flex-direction : column;
40
39
box-sizing : border-box;
41
- height : calc (100% - 30px );
40
+ min-height : 177px ;
41
+ padding : 18px 25px 25px 25px ;
42
42
}
43
43
44
44
.popupButtonContainer {
72
72
min-width : 700px ;
73
73
min-height : 350px ;
74
74
}
75
+
76
+ .smallContent {
77
+ min-height : 177px ;
78
+ }
79
+
80
+ .mediumContent {
81
+ min-height : 227px ;
82
+ }
83
+
84
+ .largeContent {
85
+ min-height : 277px ;
86
+ }
You can’t perform that action at this time.
0 commit comments