ciyidogan commited on
Commit
6e7afa4
·
verified ·
1 Parent(s): 9b446a9

Update flare-ui/src/app/dialogs/api-edit-dialog/api-edit-dialog.component.scss

Browse files
flare-ui/src/app/dialogs/api-edit-dialog/api-edit-dialog.component.scss CHANGED
@@ -1,319 +1,130 @@
1
- .tab-content {
2
- padding: 24px 16px;
3
- min-height: 400px;
4
- }
5
-
6
- .full-width {
7
- width: 100%;
8
- margin-bottom: 16px;
9
- }
10
-
11
- .form-section {
12
- margin: 24px 0;
13
-
14
- h4 {
15
- margin-bottom: 16px;
16
- color: rgba(0, 0, 0, 0.87);
17
- }
18
-
19
- .section-label {
20
- display: block;
21
- margin-bottom: 8px;
22
- color: rgba(0, 0, 0, 0.87);
23
- font-weight: 500;
24
- }
25
- }
26
-
27
- .json-editor {
28
- margin-bottom: 16px;
29
-
30
- .json-textarea {
31
- width: 100%;
32
- font-family: 'Courier New', monospace;
33
- font-size: 13px;
34
- border: 1px solid #c0c0c0;
35
- border-radius: 4px;
36
- padding: 12px;
37
- background-color: #f5f5f5;
38
- resize: vertical;
39
- min-height: 150px;
40
-
41
- &:focus {
42
- outline: none;
43
- border-color: #3f51b5;
44
- background-color: #fff;
45
- }
46
- }
47
-
48
- button {
49
- margin-top: 8px;
50
- }
51
- }
52
-
53
- .template-helpers {
54
- margin-top: 16px;
55
-
56
- ::ng-deep .mat-expansion-panel-header {
57
- padding: 0 16px;
58
- }
59
-
60
- .template-list {
61
- padding: 16px;
62
  display: flex;
63
- flex-wrap: wrap;
64
- gap: 8px;
65
-
66
- mat-chip {
67
- cursor: pointer;
68
-
69
- &:hover {
70
- background-color: #e3f2fd !important;
71
- }
72
- }
73
  }
74
- }
75
-
76
- .retry-settings {
77
- display: flex;
78
- gap: 16px;
79
- flex-wrap: wrap;
80
 
81
- mat-form-field {
82
  flex: 1;
83
- min-width: 150px;
84
- }
85
- }
86
-
87
- .headers-section {
88
- .section-header {
89
  display: flex;
90
- justify-content: space-between;
91
- align-items: center;
92
- margin-bottom: 16px;
93
-
94
- h4 {
95
- margin: 0;
96
- }
97
  }
98
 
99
- .headers-list {
100
- .header-row {
101
- display: flex;
102
- gap: 12px;
103
- margin-bottom: 12px;
104
- align-items: flex-start;
105
-
106
- mat-form-field {
107
- flex: 1;
108
-
109
- &.header-value {
110
- flex: 2;
111
- }
112
- }
113
-
114
- button {
115
- margin-top: 8px;
116
- }
117
- }
118
  }
119
 
120
- .empty-state {
121
- text-align: center;
122
- padding: 40px 20px;
123
- color: rgba(0, 0, 0, 0.54);
124
-
125
- mat-icon {
126
- font-size: 48px;
127
- width: 48px;
128
- height: 48px;
129
- margin-bottom: 16px;
130
- }
131
-
132
- p {
133
- margin: 0;
134
- }
135
  }
136
 
137
- .common-headers {
138
- padding: 16px;
139
-
140
- p {
141
- margin: 8px 0;
142
- font-size: 14px;
143
 
144
- strong {
145
- color: #3f51b5;
146
- }
147
  }
148
  }
149
- }
150
 
151
- .auth-settings {
152
- margin-top: 24px;
153
-
154
- mat-divider {
155
- margin: 24px 0;
156
- }
157
-
158
- h4 {
159
- margin-bottom: 16px;
160
- color: rgba(0, 0, 0, 0.87);
161
- }
162
- }
163
-
164
- .test-section {
165
- h4 {
166
- margin-bottom: 16px;
167
- }
168
 
169
- p {
170
- color: rgba(0, 0, 0, 0.54);
171
- margin-bottom: 24px;
172
- }
173
-
174
- .test-info {
175
- margin: 16px 0;
176
-
177
- mat-chip-listbox {
178
- mat-chip-option {
179
- margin-right: 8px;
180
  }
181
  }
182
  }
183
 
184
- button {
185
- margin-bottom: 24px;
186
  }
187
 
188
- .test-result {
189
- margin-top: 24px;
190
- border: 1px solid #e0e0e0;
191
- border-radius: 4px;
192
- padding: 16px;
193
- background-color: #fafafa;
194
- max-height: 500px;
195
- overflow-y: auto;
196
-
197
- h4 {
198
- margin-top: 0;
199
- margin-bottom: 16px;
200
  }
 
201
 
202
- .result-status {
203
- display: flex;
204
- align-items: center;
205
- gap: 12px;
206
- padding: 12px;
207
  border-radius: 4px;
208
- margin-bottom: 16px;
209
-
210
- &.success {
211
- background-color: #e8f5e9;
212
- color: #2e7d32;
213
-
214
- mat-icon {
215
- color: #2e7d32;
216
- }
217
- }
218
-
219
- &.error {
220
- background-color: #ffebee;
221
- color: #c62828;
222
-
223
- mat-icon {
224
- color: #c62828;
225
- }
226
- }
227
-
228
- .status-code,
229
- .response-time {
230
- margin-left: auto;
231
- font-size: 14px;
232
- }
233
  }
234
 
235
- .error-message {
236
  display: flex;
237
- align-items: center;
238
- gap: 8px;
239
- padding: 12px;
240
- background-color: #ffebee;
241
- color: #c62828;
242
- border-radius: 4px;
243
- margin-bottom: 16px;
244
-
245
- mat-icon {
246
- color: #c62828;
247
- }
248
  }
249
 
250
- .response-section {
251
- margin-top: 16px;
252
-
253
- h5 {
254
- margin-bottom: 8px;
255
- color: rgba(0, 0, 0, 0.87);
256
- }
257
 
258
  pre {
259
- background-color: #f5f5f5;
260
- border: 1px solid #e0e0e0;
261
- border-radius: 4px;
262
- padding: 12px;
263
- overflow-x: auto;
264
- font-size: 12px;
265
  margin: 0;
266
  white-space: pre-wrap;
267
  word-break: break-word;
268
  }
 
 
 
 
 
 
 
 
 
 
269
  }
270
  }
271
 
272
- .test-note {
273
  display: flex;
274
- align-items: center;
275
- gap: 8px;
276
- margin-top: 24px;
277
- padding: 12px;
278
- background-color: #e3f2fd;
279
- border-radius: 4px;
280
- color: #1565c0;
281
-
282
- mat-icon {
283
- color: #1565c0;
284
- }
285
 
286
- p {
287
- margin: 0;
288
- color: #1565c0;
289
  }
290
  }
291
- }
292
 
293
- mat-dialog-content {
294
- padding: 0;
295
- max-width: 800px;
296
- min-width: 600px;
297
- max-height: 70vh;
298
- overflow: hidden;
299
 
300
- mat-tab-group {
301
- height: 100%;
302
-
303
- ::ng-deep .mat-mdc-tab-body-wrapper {
304
- flex: 1;
305
- overflow-y: auto;
306
  }
307
- }
308
- }
309
 
310
- mat-dialog-actions {
311
- padding: 16px 24px;
312
- margin: 0;
313
- border-top: 1px solid #e0e0e0;
314
- gap: 8px;
315
-
316
- button {
317
- margin: 0 !important;
318
  }
319
  }
 
1
+ .api-edit-dialog {
2
+ .mat-mdc-dialog-content {
3
+ padding: 0;
4
+ overflow: hidden;
5
+ min-height: 500px;
6
+ max-height: 80vh;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7
  display: flex;
8
+ flex-direction: column;
 
 
 
 
 
 
 
 
 
9
  }
 
 
 
 
 
 
10
 
11
+ .mat-mdc-tab-group {
12
  flex: 1;
 
 
 
 
 
 
13
  display: flex;
14
+ flex-direction: column;
 
 
 
 
 
 
15
  }
16
 
17
+ .mat-mdc-tab-body-wrapper {
18
+ flex: 1;
19
+ overflow: auto;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
20
  }
21
 
22
+ .tab-content {
23
+ padding: 24px;
24
+ overflow-y: auto;
25
+ max-height: calc(80vh - 200px);
 
 
 
 
 
 
 
 
 
 
 
26
  }
27
 
28
+ .section-title {
29
+ font-size: 16px;
30
+ font-weight: 500;
31
+ margin: 24px 0 16px 0;
32
+ color: #666;
 
33
 
34
+ &:first-child {
35
+ margin-top: 0;
 
36
  }
37
  }
 
38
 
39
+ .headers-section {
40
+ mat-form-field {
41
+ width: calc(50% - 8px);
42
+ margin-right: 16px;
 
 
 
 
 
 
 
 
 
 
 
 
 
43
 
44
+ &:nth-child(2n) {
45
+ margin-right: 0;
 
 
 
 
 
 
 
 
 
46
  }
47
  }
48
  }
49
 
50
+ .add-header-button {
51
+ margin-top: 8px;
52
  }
53
 
54
+ .auth-fields {
55
+ .token-fields {
56
+ margin-top: 16px;
57
+ padding: 16px;
58
+ background-color: #f5f5f5;
59
+ border-radius: 4px;
 
 
 
 
 
 
60
  }
61
+ }
62
 
63
+ .test-section {
64
+ .test-url {
65
+ margin-bottom: 24px;
66
+ padding: 16px;
67
+ background-color: #f5f5f5;
68
  border-radius: 4px;
69
+ font-family: monospace;
70
+ word-break: break-all;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
71
  }
72
 
73
+ .test-actions {
74
  display: flex;
75
+ gap: 16px;
76
+ margin-bottom: 24px;
 
 
 
 
 
 
 
 
 
77
  }
78
 
79
+ .test-results {
80
+ border: 1px solid #e0e0e0;
81
+ border-radius: 4px;
82
+ padding: 16px;
83
+ background-color: #fafafa;
 
 
84
 
85
  pre {
 
 
 
 
 
 
86
  margin: 0;
87
  white-space: pre-wrap;
88
  word-break: break-word;
89
  }
90
+
91
+ &.success {
92
+ border-color: #4caf50;
93
+ background-color: #f1f8e9;
94
+ }
95
+
96
+ &.error {
97
+ border-color: #f44336;
98
+ background-color: #ffebee;
99
+ }
100
  }
101
  }
102
 
103
+ .retry-settings {
104
  display: flex;
105
+ gap: 16px;
106
+ align-items: flex-start;
107
+ margin-bottom: 24px;
 
 
 
 
 
 
 
 
108
 
109
+ mat-form-field {
110
+ flex: 1;
 
111
  }
112
  }
 
113
 
114
+ mat-dialog-actions {
115
+ padding: 16px 24px;
116
+ margin: 0;
117
+ border-top: 1px solid #e0e0e0;
118
+ }
 
119
 
120
+ // Form field density
121
+ ::ng-deep {
122
+ .mat-mdc-form-field {
123
+ margin-bottom: 16px;
 
 
124
  }
 
 
125
 
126
+ .mat-mdc-dialog-content {
127
+ max-height: 80vh;
128
+ }
 
 
 
 
 
129
  }
130
  }