|
1 | 1 | .filters-content { |
2 | 2 | display: grid; |
3 | | - grid-template-columns: auto 228px 0 1fr 120px 32px; |
| 3 | + grid-template-columns: 32px auto 228px 0 1fr 120px; |
4 | 4 | grid-column-gap: 8px; |
5 | 5 | align-content: flex-start; |
6 | 6 | align-items: flex-start; |
7 | 7 | padding-top: 4px !important; |
8 | 8 | } |
9 | 9 |
|
10 | 10 | .filters-select { |
11 | | - grid-column: 1 / span 6; |
| 11 | + grid-column: 2 / span 5; |
12 | 12 | margin-bottom: 16px; |
13 | 13 | } |
14 | 14 |
|
15 | 15 | .filter-line { |
16 | | - grid-column: 1 / span 4; |
| 16 | + grid-column: 2 / span 4; |
| 17 | +} |
| 18 | + |
| 19 | +.empty-conditions-container { |
| 20 | + grid-column: 1 / span 6; |
| 21 | + display: flex; |
| 22 | + align-items: center; |
| 23 | + gap: 12px; |
| 24 | + margin-top: 8px; |
| 25 | + margin-bottom: 16px; |
| 26 | +} |
| 27 | + |
| 28 | +.where-label { |
| 29 | + font-weight: 500; |
| 30 | + color: rgba(0, 0, 0, 0.87); |
| 31 | + white-space: nowrap; |
| 32 | +} |
| 33 | + |
| 34 | +@media (prefers-color-scheme: dark) { |
| 35 | + .where-label { |
| 36 | + color: rgba(255, 255, 255, 0.87); |
| 37 | + } |
| 38 | +} |
| 39 | + |
| 40 | +.empty-conditions-container .add-condition-button { |
| 41 | + width: auto; |
| 42 | + min-width: auto; |
| 43 | + min-height: 36px; |
| 44 | + height: 36px; |
| 45 | + display: flex; |
| 46 | + align-items: center; |
| 47 | + justify-content: center; |
| 48 | + text-transform: none; |
| 49 | + margin: 0 !important; |
| 50 | + padding: 0 16px; |
| 51 | + gap: 4px; |
| 52 | +} |
| 53 | + |
| 54 | +.empty-conditions-container .add-condition-button.accent-button { |
| 55 | + color: #C177FC; |
| 56 | +} |
| 57 | + |
| 58 | +.empty-conditions-container .add-condition-button.accent-button:hover { |
| 59 | + background-color: rgba(193, 119, 252, 0.04); |
| 60 | +} |
| 61 | + |
| 62 | +.empty-conditions-container .add-condition-button.accent-button .add-icon { |
| 63 | + font-size: 20px; |
| 64 | + width: 20px; |
| 65 | + height: 20px; |
| 66 | + line-height: 20px; |
| 67 | +} |
| 68 | + |
| 69 | +.empty-conditions-container .column-name-icon { |
| 70 | + font-size: 18px; |
| 71 | + width: 18px; |
| 72 | + height: 18px; |
| 73 | + vertical-align: middle; |
| 74 | +} |
| 75 | + |
| 76 | +.empty-condition-input { |
| 77 | + width: auto; |
| 78 | + min-width: 200px; |
| 79 | + max-width: 300px; |
| 80 | + margin: 0; |
| 81 | + flex-shrink: 0; |
| 82 | +} |
| 83 | + |
| 84 | +.empty-condition-input ::ng-deep .mat-mdc-form-field-infix { |
| 85 | + min-height: 36px; |
| 86 | + padding-top: 8px; |
| 87 | + padding-bottom: 8px; |
| 88 | + display: flex; |
| 89 | + align-items: center; |
| 90 | +} |
| 91 | + |
| 92 | +.empty-condition-input ::ng-deep .mat-mdc-form-field { |
| 93 | + margin: 0; |
| 94 | +} |
| 95 | + |
| 96 | +.empty-condition-input ::ng-deep .mat-mdc-text-field-wrapper { |
| 97 | + padding-bottom: 0; |
| 98 | + margin-bottom: 0; |
| 99 | +} |
| 100 | + |
| 101 | +.empty-condition-input ::ng-deep .mat-mdc-form-field-subscript-wrapper { |
| 102 | + margin-top: 0; |
| 103 | + position: absolute; |
| 104 | + top: 100%; |
17 | 105 | } |
18 | 106 |
|
19 | 107 | .dynamic-column-radio { |
20 | | - grid-column: 5; |
| 108 | + grid-column: 6; |
21 | 109 | margin-top: 8px; |
22 | 110 | } |
23 | 111 |
|
| 112 | +.comparator-select-field { |
| 113 | + grid-column: 3; |
| 114 | +} |
| 115 | + |
24 | 116 | .add-condition-footer { |
25 | 117 | grid-column: 1 / span 6; |
26 | | - margin-top: 16px; |
| 118 | + margin-top: 24px; |
27 | 119 | display: flex; |
28 | 120 | flex-direction: column; |
29 | 121 | justify-content: flex-start; |
|
32 | 124 | } |
33 | 125 |
|
34 | 126 | .add-condition-footer button { |
35 | | - width: 50%; |
36 | | - min-height: 44px; |
37 | | - height: 44px; |
| 127 | + width: auto; |
| 128 | + min-width: auto; |
| 129 | + min-height: 36px; |
| 130 | + height: 36px; |
38 | 131 | display: flex; |
39 | 132 | align-items: center; |
40 | 133 | justify-content: center; |
41 | 134 | text-transform: none; |
42 | | - margin: 0 !important; |
43 | | - padding: 0; |
| 135 | + margin: 0 0 16px 0 !important; |
| 136 | + padding: 0 16px; |
44 | 137 | } |
45 | 138 |
|
46 | 139 | .add-condition-footer .filters-select { |
47 | | - width: 50%; |
| 140 | + width: auto; |
| 141 | + min-width: 200px; |
| 142 | + max-width: 300px; |
48 | 143 | margin: 0 !important; |
49 | | - min-height: 44px; |
| 144 | + min-height: 36px; |
50 | 145 | margin-top: 0 !important; |
| 146 | + flex-shrink: 0; |
| 147 | +} |
| 148 | + |
| 149 | +.add-condition-footer .filters-select ::ng-deep .mat-mdc-form-field-infix { |
| 150 | + min-height: 36px; |
| 151 | + padding-top: 8px; |
| 152 | + padding-bottom: 8px; |
| 153 | + display: flex; |
| 154 | + align-items: center; |
| 155 | +} |
| 156 | + |
| 157 | +.add-condition-footer .filters-select ::ng-deep .mat-mdc-text-field-wrapper { |
| 158 | + padding-bottom: 0; |
| 159 | + margin-bottom: 0; |
51 | 160 | } |
52 | 161 |
|
53 | 162 | .add-condition-footer ::ng-deep .mat-mdc-form-field { |
|
142 | 251 | display: flex; |
143 | 252 | } |
144 | 253 |
|
145 | | -.filters-content { |
146 | | - flex: 1 0 auto; |
147 | | -} |
148 | | - |
149 | 254 | .column-name { |
| 255 | + grid-column: 2; |
150 | 256 | margin-top: 12px; |
151 | 257 | } |
152 | 258 |
|
153 | 259 | .filter-delete-button { |
| 260 | + grid-column: 1; |
154 | 261 | margin-top: 4px; |
155 | | - margin-left: 8px; |
| 262 | + margin-right: 8px; |
| 263 | + align-self: flex-start; |
156 | 264 | } |
157 | 265 |
|
158 | 266 | .settings-form__reset-button { |
|
181 | 289 |
|
182 | 290 | .comparator-select-field { |
183 | 291 | width: auto; |
184 | | - min-width: fit-content; |
185 | | - max-width: fit-content; |
| 292 | + min-width: 140px; |
| 293 | + max-width: none; |
186 | 294 | } |
187 | 295 |
|
188 | 296 | .comparator-select-field ::ng-deep .mat-mdc-form-field-infix { |
189 | | - width: auto !important; |
| 297 | + width: 100% !important; |
190 | 298 | min-width: fit-content; |
191 | | - padding-right: 12px; |
| 299 | + padding-right: 40px; |
192 | 300 | padding-left: 0; |
| 301 | + position: relative; |
193 | 302 | } |
194 | 303 |
|
195 | 304 | .comparator-select-field ::ng-deep .mat-mdc-select-trigger { |
196 | | - width: auto; |
| 305 | + width: 100%; |
197 | 306 | min-width: fit-content; |
| 307 | + display: flex; |
| 308 | + justify-content: space-between; |
| 309 | + align-items: center; |
198 | 310 | } |
199 | 311 |
|
200 | 312 | .comparator-select-field ::ng-deep .mat-mdc-select-value-text { |
201 | 313 | width: auto; |
202 | 314 | min-width: fit-content; |
| 315 | + flex: 1; |
| 316 | +} |
| 317 | + |
| 318 | +.comparator-select-field ::ng-deep .mat-mdc-select-arrow-wrapper { |
| 319 | + position: absolute; |
| 320 | + right: 0; |
| 321 | + top: 50%; |
| 322 | + transform: translateY(-50%); |
203 | 323 | } |
204 | 324 |
|
205 | 325 | .comparator-select-field ::ng-deep .mat-mdc-select-panel { |
|
214 | 334 | margin: 8px 0 0 0; |
215 | 335 | padding-left: 16px; |
216 | 336 | } |
| 337 | + |
| 338 | +/* Add more spacing for multiline textarea inputs (more than 2 rows) */ |
| 339 | +.filters-content ::ng-deep .filter-line mat-form-field:has(textarea[rows]):not(:has(textarea[rows="1"])):not(:has(textarea[rows="2"])), |
| 340 | +.filters-content ::ng-deep .filter-line mat-form-field:has(textarea.long-textarea), |
| 341 | +.filters-content ::ng-deep .filter-line mat-form-field:has(textarea.form-textarea) { |
| 342 | + margin-top: 24px !important; |
| 343 | + margin-bottom: 24px !important; |
| 344 | +} |
| 345 | + |
| 346 | +/* Add more spacing for foreign key fields */ |
| 347 | +.filters-content ::ng-deep .filter-line .foreign-key, |
| 348 | +.filters-content ::ng-deep .filter-line app-edit-foreign-key, |
| 349 | +.filters-content ::ng-deep .foreign-key { |
| 350 | + margin-top: 24px !important; |
| 351 | + margin-bottom: 24px !important; |
| 352 | +} |
0 commit comments