| @@ -179,8 +179,73 @@ | ||
| 179 | 179 | .divide-bar .wpsc-ai-auto-delete-logs-unit { |
| 180 | 180 | max-width: 250px; |
| 181 | 181 | } |
| 182 | 182 | |
| 183 | +/* Shared AI Assistant list filter toolbar (Status / Source / Type / Search / Reset) */ | |
| 184 | +.wpsc-aia-toolbar { | |
| 185 | + display: flex; | |
| 186 | + gap: 10px; | |
| 187 | + align-items: flex-end; | |
| 188 | + flex-wrap: wrap; | |
| 189 | + background: #fff; | |
| 190 | + border: 1px solid #dcdcde; | |
| 191 | + border-radius: 6px; | |
| 192 | + padding: 16px; | |
| 193 | + margin-bottom: 20px; | |
| 194 | +} | |
| 195 | + | |
| 196 | +.wpsc-aia-toolbar-item { | |
| 197 | + display: flex; | |
| 198 | + flex-direction: column; | |
| 199 | +} | |
| 200 | + | |
| 201 | +.wpsc-aia-toolbar-item label { | |
| 202 | + font-size: 12px; | |
| 203 | + color: #646970; | |
| 204 | + margin-bottom: 6px; | |
| 205 | + font-weight: 600; | |
| 206 | +} | |
| 207 | + | |
| 208 | +.wpsc-aia-toolbar-item select, | |
| 209 | +.wpsc-aia-toolbar-item input { | |
| 210 | + min-width: 200px; | |
| 211 | +} | |
| 212 | + | |
| 213 | +.wpsc-aia-toolbar-item .select2-container { | |
| 214 | + min-width: 200px; | |
| 215 | +} | |
| 216 | + | |
| 217 | +.wpsc-aia-toolbar-reset { | |
| 218 | + flex: 1; | |
| 219 | +} | |
| 220 | + | |
| 221 | +.wpsc-aia-toolbar-reset button { | |
| 222 | + width: fit-content; | |
| 223 | +} | |
| 224 | + | |
| 225 | +.wpsc-aia-toolbar-search input { | |
| 226 | + width: 100%; | |
| 227 | +} | |
| 228 | + | |
| 229 | +.wpsc-aia-actions-bar { | |
| 230 | + display: flex; | |
| 231 | + gap: 10px; | |
| 232 | + margin-bottom: 15px; | |
| 233 | +} | |
| 234 | + | |
| 235 | +@media (max-width: 768px) { | |
| 236 | + .wpsc-aia-toolbar-item, | |
| 237 | + .wpsc-aia-toolbar-reset { | |
| 238 | + width: 100%; | |
| 239 | + } | |
| 240 | + | |
| 241 | + .wpsc-aia-toolbar-item select, | |
| 242 | + .wpsc-aia-toolbar-item input { | |
| 243 | + min-width: 0; | |
| 244 | + width: 100%; | |
| 245 | + } | |
| 246 | +} | |
| 247 | + | |
| 183 | 248 | /* Container styling */ |
| 184 | 249 | .wpsc-ai-training-list-actions-container { |
| 185 | 250 | display: flex; |
| 186 | 251 | flex-wrap: wrap; |
| @@ -209,8 +274,14 @@ | ||
| 209 | 274 | .wpsc-ai-training-list-container .dt-search { |
| 210 | 275 | display: none !important; |
| 211 | 276 | } |
| 212 | 277 | |
| 278 | +/* Length change is disabled and search/"Add new" are handled outside DataTables, | |
| 279 | + so the default top row would otherwise render empty. */ | |
| 280 | +.wpsc-ai-training-list-container .dt-container > .dt-layout-row:first-child { | |
| 281 | + display: none; | |
| 282 | +} | |
| 283 | + | |
| 213 | 284 | /* Responsive: Stack vertically on small devices (Tablets/Phones) */ |
| 214 | 285 | @media (max-width: 768px) { |
| 215 | 286 | .wpsc-ai-training-list-actions-container { |
| 216 | 287 | flex-direction: column; |
| @@ -253,9 +324,10 @@ | ||
| 253 | 324 | align-items: center; |
| 254 | 325 | } |
| 255 | 326 | |
| 256 | 327 | #wpsc-bulk-actions-btn svg, |
| 257 | -#wpsc-file-upload-bulk-actions-btn svg { | |
| 328 | +#wpsc-file-upload-bulk-actions-btn svg, | |
| 329 | +#wpsc-training-data-bulk-actions-btn svg { | |
| 258 | 330 | height: 13px; |
| 259 | 331 | margin-left: 15px; |
| 260 | 332 | } |
| 261 | 333 | |
| @@ -360,8 +432,17 @@ | ||
| 360 | 432 | .wpsc-ait-sync-post-types li.processing::before { |
| 361 | 433 | content: "\21BB"; |
| 362 | 434 | } |
| 363 | 435 | |
| 436 | +.wpsc-ait-sync-post-types li.failed { | |
| 437 | + color: #d63638; | |
| 438 | + font-weight: 600; | |
| 439 | +} | |
| 440 | + | |
| 441 | +.wpsc-ait-sync-post-types li.failed::before { | |
| 442 | + content: "\2715"; | |
| 443 | +} | |
| 444 | + | |
| 364 | 445 | .wpsc-ait-record-counts { |
| 365 | 446 | display: flex; |
| 366 | 447 | align-items: center; |
| 367 | 448 | flex-wrap: wrap; |
| @@ -422,5 +503,10 @@ | ||
| 422 | 503 | |
| 423 | 504 | .wpsc-ait-upload-status--not-synced { |
| 424 | 505 | background-color: #f1f1f1; |
| 425 | 506 | color: #666; |
| 507 | +} | |
| 508 | + | |
| 509 | +/* AI Training Data tab list: keep the Action column's links (View Reason | Delete) on one line instead of wrapping. */ | |
| 510 | +.wpsc-ai-training-data-list-table td:last-child { | |
| 511 | + white-space: nowrap; | |
| 426 | 512 | } |