File tree Expand file tree Collapse file tree 10 files changed +53
-4
lines changed
portal-ui/src/screens/Console
NotificationEndpoints/CustomForms Expand file tree Collapse file tree 10 files changed +53
-4
lines changed Original file line number Diff line number Diff line change @@ -64,6 +64,9 @@ const styles = (theme: Theme) =>
64
64
} ,
65
65
"& div:first-child" : {
66
66
marginBottom : 0 ,
67
+ "@media (max-width: 600px)" : {
68
+ marginTop : "7px" ,
69
+ } ,
67
70
} ,
68
71
} ,
69
72
...spacingUtils ,
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ import createStyles from "@mui/styles/createStyles";
22
22
import withStyles from "@mui/styles/withStyles" ;
23
23
import Grid from "@mui/material/Grid" ;
24
24
import {
25
+ formFieldStyles ,
25
26
modalStyleUtils ,
26
27
spacingUtils ,
27
28
} from "../../Common/FormComponents/common/styleLibrary" ;
@@ -37,14 +38,14 @@ const styles = (theme: Theme) =>
37
38
createStyles ( {
38
39
codeMirrorContainer : {
39
40
marginBottom : 20 ,
40
- paddingLeft : 15 ,
41
41
"& label" : {
42
42
marginBottom : ".5rem" ,
43
43
} ,
44
44
"& label + div" : {
45
45
display : "none" ,
46
46
} ,
47
47
} ,
48
+ ...formFieldStyles ,
48
49
...modalStyleUtils ,
49
50
...spacingUtils ,
50
51
} ) ;
Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ import { Theme } from "@mui/material/styles";
22
22
import createStyles from "@mui/styles/createStyles" ;
23
23
import CopyToClipboard from "react-copy-to-clipboard" ;
24
24
import { CopyIcon } from "../../../../icons" ;
25
+ import { fieldBasic } from "../FormComponents/common/styleLibrary" ;
25
26
26
27
const styles = ( theme : Theme ) =>
27
28
createStyles ( {
@@ -50,8 +51,8 @@ const styles = (theme: Theme) =>
50
51
} ,
51
52
} ,
52
53
inputLabel : {
54
+ ...fieldBasic . inputLabel ,
53
55
fontSize : ".8rem" ,
54
- fontWeight : 600 ,
55
56
} ,
56
57
} ) ;
57
58
Original file line number Diff line number Diff line change @@ -61,10 +61,11 @@ const styles = (theme: Theme) => {
61
61
marginBottom : 7 ,
62
62
} ,
63
63
inputLabel : {
64
+ ...fieldBasic . inputLabel ,
64
65
margin : 0 ,
65
66
alignItems : "flex-start" ,
66
67
paddingTop : "20px" ,
67
- minWidth : 170 ,
68
+ minWidth : 162 ,
68
69
} ,
69
70
} ) ;
70
71
} ;
Original file line number Diff line number Diff line change @@ -50,6 +50,10 @@ interface ICodeWrapper {
50
50
const styles = ( theme : Theme ) =>
51
51
createStyles ( {
52
52
...fieldBasic ,
53
+ inputLabel : {
54
+ ...fieldBasic . inputLabel ,
55
+ fontWeight : "normal" ,
56
+ } ,
53
57
} ) ;
54
58
55
59
const langHighlight : Record < string , any > = {
Original file line number Diff line number Diff line change @@ -64,6 +64,16 @@ const styles = (theme: Theme) =>
64
64
} ,
65
65
} ,
66
66
...fileInputStyles ,
67
+ inputLabel : {
68
+ ...fieldBasic . inputLabel ,
69
+ fontWeight : "normal" ,
70
+ } ,
71
+ textBoxContainer : {
72
+ ...fieldBasic . textBoxContainer ,
73
+ maxWidth : "100%" ,
74
+ border : "1px solid #eaeaea" ,
75
+ paddingLeft : "15px" ,
76
+ } ,
67
77
} ) ;
68
78
69
79
const FileSelector = ( {
Original file line number Diff line number Diff line change @@ -82,6 +82,10 @@ const styles = (theme: Theme) =>
82
82
top : 5 ,
83
83
} ,
84
84
} ,
85
+ inputLabel : {
86
+ ...fieldBasic . inputLabel ,
87
+ fontWeight : "normal" ,
88
+ } ,
85
89
} ) ;
86
90
87
91
const inputStyles = makeStyles ( ( theme : Theme ) =>
Original file line number Diff line number Diff line change @@ -51,6 +51,18 @@ const styles = (theme: Theme) =>
51
51
createStyles ( {
52
52
...fieldBasic ,
53
53
...tooltipHelper ,
54
+ inputLabel : {
55
+ ...fieldBasic . inputLabel ,
56
+ "& span" : {
57
+ fontWeight : "normal" ,
58
+ } ,
59
+ } ,
60
+ fieldContainer : {
61
+ display : "flex" ,
62
+ "@media (max-width: 600px)" : {
63
+ flexFlow : "column" ,
64
+ } ,
65
+ } ,
54
66
} ) ;
55
67
56
68
const SelectStyled = withStyles ( ( theme : Theme ) =>
Original file line number Diff line number Diff line change @@ -23,11 +23,12 @@ const inputLabelBase = {
23
23
color : "#07193E" ,
24
24
textAlign : "left" as const ,
25
25
overflow : "hidden" ,
26
+ alignItems : "center" ,
27
+ display : "flex" ,
26
28
"& span" : {
27
29
display : "flex" ,
28
30
alignItems : "center" ,
29
31
} ,
30
- display : "flex" ,
31
32
} ;
32
33
33
34
export const fieldBasic : any = {
@@ -46,6 +47,9 @@ export const fieldBasic: any = {
46
47
position : "relative" as const ,
47
48
display : "flex" as const ,
48
49
flexWrap : "wrap" ,
50
+ "@media (max-width: 600px)" : {
51
+ flexFlow : "column" ,
52
+ } ,
49
53
} ,
50
54
tooltipContainer : {
51
55
marginLeft : 5 ,
Original file line number Diff line number Diff line change @@ -197,12 +197,21 @@ const EditConfiguration = ({
197
197
paddingTop : "15px " ,
198
198
textAlign : "right" as const ,
199
199
maxHeight : "60px" ,
200
+ display : "flex" ,
201
+ alignItems : "center" ,
202
+ justifyContent : "flex-end" ,
200
203
} }
201
204
>
202
205
< Button
203
206
type = "button"
204
207
variant = "outlined"
205
208
color = "secondary"
209
+ sx = { {
210
+ padding : {
211
+ xs : "3px" , //avoid wrapping on smaller screens
212
+ md : "20px" ,
213
+ } ,
214
+ } }
206
215
onClick = { ( ) => {
207
216
setResetConfigurationOpen ( true ) ;
208
217
} }
You can’t perform that action at this time.
0 commit comments