File tree Expand file tree Collapse file tree 2 files changed +52
-29
lines changed Expand file tree Collapse file tree 2 files changed +52
-29
lines changed Original file line number Diff line number Diff line change @@ -173,9 +173,9 @@ const BugReportForm = () => {
173
173
</ Upload >
174
174
</ Form . Item >
175
175
176
- < Form . Item wrapperCol = { { offset : 4 , span : 16 } } >
176
+ < Form . Item >
177
177
< Button type = "primary" htmlType = "submit" >
178
- { t ( 'bug_submit' ) } { ' ' }
178
+ { t ( 'bug_submit' ) }
179
179
</ Button >
180
180
</ Form . Item >
181
181
</ Form >
Original file line number Diff line number Diff line change 1
- // BugReportForm.scss
1
+ main :has (> div > .bug-report-form-container ) {
2
+ display : flex ;
3
+ justify-content : center ;
4
+ align-items : center ;
5
+ margin : 0 !important ;
6
+ padding : 24px ;
7
+
8
+ > div {
9
+ display : contents ;
10
+ }
11
+ }
2
12
3
13
.bug-report-form-container {
4
14
max-width : 800px ;
5
15
width : 100% ;
6
- margin : 0 auto ;
7
- padding : 30px ;
8
16
border-radius : 8px ;
9
17
box-shadow : 0 2px 8px rgb (0 0 0 / 10% );
10
-
18
+ padding : 24px ;
19
+ max-height : 100% ;
20
+ display : flex ;
21
+ flex-direction : column ;
22
+
23
+ .MuiCardContent-root {
24
+ display : contents ;
25
+ }
26
+
27
+ form {
28
+ overflow-y : auto !important ;
29
+ }
30
+
11
31
@media (width <= 600px ) {
12
32
padding : 15px ;
13
33
18
38
border-bottom : 6px solid gray ;
19
39
}
20
40
21
- .ant-form-item-label {
22
- text-align : left ;
23
- }
24
-
25
41
.ant-btn-primary {
26
- max-width : calc (100% - 100px );
27
- margin : 0 auto ;
28
- display : block ;
42
+ width : 100% ;
29
43
}
30
44
}
31
45
38
52
border-bottom : 8px solid gray ;
39
53
padding-bottom : 0 ;
40
54
line-height : 25px ;
41
- text-align : center ;
55
+ text-align : center ;
42
56
display : flex ;
43
57
}
44
58
45
59
.ant-form-item {
46
60
margin-bottom : 20px ;
61
+ width : 100% ;
62
+
63
+ & :last-child {
64
+ margin-bottom : 0 ;
65
+ text-align : end ;
66
+
67
+ & > div > div {
68
+ max-width : 100% ;
69
+ }
70
+ }
47
71
48
72
& -label {
73
+ text-align : start ;
49
74
font-weight : bold ;
50
- text-align : right ;
75
+ white-space : warp;
76
+ text-wrap : pretty;
51
77
}
52
78
}
53
79
60
86
width : 100% ;
61
87
}
62
88
63
- .ant-btn {
64
- margin-right : 8px ;
89
+ .ant-btn-primary {
90
+ background-color : #1890ff ;
91
+ border-color : #1890ff ;
92
+ display : inline-block ;
93
+ font-weight : 500 ;
65
94
66
- & -primary {
67
- background-color : #1890ff ;
68
- border-color : #1890ff ;
69
- width : 100% ;
70
-
71
- & :hover {
72
- background-color : #40a9ff ;
73
- border-color : #40a9ff ;
74
- }
95
+ & :hover {
96
+ background-color : #40a9ff ;
97
+ border-color : #40a9ff ;
98
+ }
75
99
76
- & :focus {
77
- box-shadow : 0 0 0 2px rgb (24 144 255 / 20% );
78
- }
100
+ & :focus {
101
+ box-shadow : 0 0 0 2px rgb (24 144 255 / 20% );
79
102
}
80
103
}
81
104
}
You can’t perform that action at this time.
0 commit comments