|
265 | 265 | align-items: center; |
266 | 266 | gap: 1px; |
267 | 267 | min-height: 40px; |
268 | | - margin: 4px 0 20px; |
| 268 | + margin: 4px 0 10px; |
| 269 | +} |
| 270 | + |
| 271 | +/* Two-column sidebar switcher: 个人 / 定时任务. */ |
| 272 | +.chat-shell .sidebar-bucket-tabs { |
| 273 | + display: grid; |
| 274 | + grid-template-columns: repeat(2, minmax(0, 1fr)); |
| 275 | + align-items: center; |
| 276 | + position: relative; |
| 277 | + margin: 0 0 12px; |
| 278 | + padding: 3px; |
| 279 | + border: 1px solid var(--line); |
| 280 | + border-radius: 10px; |
| 281 | + background: var(--subtle); |
| 282 | +} |
| 283 | + |
| 284 | +.chat-shell .sidebar-bucket-tabs .sliding-tabs-indicator { |
| 285 | + border-radius: 7px; |
| 286 | + background: var(--surface); |
| 287 | + box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06); |
| 288 | +} |
| 289 | + |
| 290 | +[data-theme="dark"] .chat-shell .sidebar-bucket-tabs .sliding-tabs-indicator { |
| 291 | + box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35); |
| 292 | +} |
| 293 | + |
| 294 | +.chat-shell .sidebar-bucket-tab { |
| 295 | + position: relative; |
| 296 | + z-index: 1; |
| 297 | + display: inline-flex; |
| 298 | + align-items: center; |
| 299 | + justify-content: center; |
| 300 | + gap: 5px; |
| 301 | + min-width: 0; |
| 302 | + height: 28px; |
| 303 | + padding: 0 4px; |
| 304 | + border: 0; |
| 305 | + border-radius: 7px; |
| 306 | + background: transparent; |
| 307 | + color: var(--muted); |
| 308 | + font-size: 12px; |
| 309 | + font-weight: 500; |
| 310 | + white-space: nowrap; |
| 311 | + cursor: pointer; |
| 312 | + transition: color 160ms ease; |
| 313 | +} |
| 314 | + |
| 315 | +.chat-shell .sidebar-bucket-tab:hover { |
| 316 | + color: var(--text); |
| 317 | +} |
| 318 | + |
| 319 | +.chat-shell .sidebar-bucket-tab.active, |
| 320 | +.chat-shell .sidebar-bucket-tab[aria-selected="true"] { |
| 321 | + color: var(--text); |
| 322 | + font-weight: 600; |
| 323 | +} |
| 324 | + |
| 325 | +.chat-shell .sidebar-tab-dot { |
| 326 | + flex: none; |
| 327 | + width: 6px; |
| 328 | + height: 6px; |
| 329 | + border-radius: 50%; |
| 330 | + background: #3b82f6; |
| 331 | +} |
| 332 | + |
| 333 | +.chat-shell .sidebar-tab-dot[data-tone="running"] { |
| 334 | + background: #5273dc; |
| 335 | + animation: sidebar-tab-pulse 1.4s ease-in-out infinite; |
| 336 | +} |
| 337 | + |
| 338 | +.chat-shell .sidebar-tab-dot[data-tone="failed"] { |
| 339 | + background: #ce4444; |
| 340 | +} |
| 341 | + |
| 342 | +[data-theme="dark"] .chat-shell .sidebar-tab-dot[data-tone="running"] { |
| 343 | + background: #9cafff; |
| 344 | +} |
| 345 | + |
| 346 | +[data-theme="dark"] .chat-shell .sidebar-tab-dot[data-tone="failed"] { |
| 347 | + background: #f38989; |
| 348 | +} |
| 349 | + |
| 350 | +@keyframes sidebar-tab-pulse { |
| 351 | + 0%, 100% { opacity: 1; transform: scale(1); } |
| 352 | + 50% { opacity: 0.45; transform: scale(0.8); } |
| 353 | +} |
| 354 | + |
| 355 | +/* Scheduled sidebar sub-toolbar and footer */ |
| 356 | +.chat-shell .sidebar-subbar { |
| 357 | + display: flex; |
| 358 | + align-items: center; |
| 359 | + justify-content: space-between; |
| 360 | + gap: 6px; |
| 361 | + margin: 0 2px 10px; |
| 362 | + padding: 0 4px; |
| 363 | +} |
| 364 | + |
| 365 | +.chat-shell .sidebar-mode-pills { |
| 366 | + display: inline-flex; |
| 367 | + align-items: center; |
| 368 | + gap: 2px; |
| 369 | + padding: 2px; |
| 370 | + border: 1px solid var(--line); |
| 371 | + border-radius: 8px; |
| 372 | + background: var(--subtle); |
| 373 | +} |
| 374 | + |
| 375 | +.chat-shell .sidebar-mode-pills button { |
| 376 | + height: 22px; |
| 377 | + padding: 0 7px; |
| 378 | + border: 0; |
| 379 | + border-radius: 6px; |
| 380 | + background: transparent; |
| 381 | + color: var(--muted); |
| 382 | + font-size: 11px; |
| 383 | + font-weight: 500; |
| 384 | + cursor: pointer; |
| 385 | +} |
| 386 | + |
| 387 | +.chat-shell .sidebar-mode-pills button.active { |
| 388 | + background: var(--surface); |
| 389 | + color: var(--text); |
| 390 | + box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06); |
| 391 | +} |
| 392 | + |
| 393 | +.chat-shell .sidebar-subbar-action { |
| 394 | + display: inline-flex; |
| 395 | + align-items: center; |
| 396 | + gap: 3px; |
| 397 | + height: 24px; |
| 398 | + padding: 0 7px; |
| 399 | + border: 0; |
| 400 | + border-radius: 7px; |
| 401 | + background: transparent; |
| 402 | + color: var(--hui-accent, #7b61ff); |
| 403 | + font-size: 11.5px; |
| 404 | + font-weight: 500; |
| 405 | + cursor: pointer; |
| 406 | +} |
| 407 | + |
| 408 | +.chat-shell .sidebar-subbar-action:hover { |
| 409 | + background: var(--hover); |
| 410 | +} |
| 411 | + |
| 412 | +.chat-shell .sidebar-task-head { |
| 413 | + display: flex; |
| 414 | + align-items: center; |
| 415 | + gap: 4px; |
| 416 | + margin: 0 0 4px; |
| 417 | + padding: 2px 4px; |
| 418 | + border-radius: 8px; |
| 419 | +} |
| 420 | + |
| 421 | +.chat-shell .sidebar-task-head:hover { |
| 422 | + background: var(--hover); |
| 423 | +} |
| 424 | + |
| 425 | +.chat-shell .sidebar-task-toggle { |
| 426 | + display: flex; |
| 427 | + align-items: center; |
| 428 | + gap: 6px; |
| 429 | + flex: 1; |
| 430 | + min-width: 0; |
| 431 | + min-height: 26px; |
| 432 | + padding: 0 4px; |
| 433 | + border: 0; |
| 434 | + background: transparent; |
| 435 | + color: var(--text); |
| 436 | + font-size: 12px; |
| 437 | + font-weight: 500; |
| 438 | + text-align: left; |
| 439 | + cursor: pointer; |
| 440 | +} |
| 441 | + |
| 442 | +.chat-shell .sidebar-task-toggle > span { |
| 443 | + min-width: 0; |
| 444 | + overflow: hidden; |
| 445 | + text-overflow: ellipsis; |
| 446 | + white-space: nowrap; |
| 447 | +} |
| 448 | + |
| 449 | +.chat-shell .sidebar-task-actions { |
| 450 | + display: inline-flex; |
| 451 | + align-items: center; |
| 452 | + gap: 2px; |
| 453 | + flex: none; |
| 454 | +} |
| 455 | + |
| 456 | +.chat-shell .sidebar-task-quick { |
| 457 | + display: inline-flex; |
| 458 | + align-items: center; |
| 459 | + justify-content: center; |
| 460 | + width: 22px; |
| 461 | + height: 22px; |
| 462 | + border: 0; |
| 463 | + border-radius: 6px; |
| 464 | + background: transparent; |
| 465 | + color: var(--muted); |
| 466 | + cursor: pointer; |
| 467 | + opacity: 0; |
| 468 | + transition: opacity 140ms ease, color 140ms ease, background 140ms ease; |
| 469 | +} |
| 470 | + |
| 471 | +.chat-shell .sidebar-task-head:is(:hover, :focus-within) .sidebar-task-quick { |
| 472 | + opacity: 1; |
| 473 | +} |
| 474 | + |
| 475 | +.chat-shell .sidebar-task-quick:hover { |
| 476 | + background: var(--surface); |
| 477 | + color: var(--text); |
| 478 | +} |
| 479 | + |
| 480 | +.chat-shell .sidebar-task-quick.is-run:hover { |
| 481 | + color: var(--hui-accent, #7b61ff); |
| 482 | +} |
| 483 | + |
| 484 | +.chat-shell .sidebar-task-count { |
| 485 | + display: inline-flex; |
| 486 | + align-items: center; |
| 487 | + justify-content: center; |
| 488 | + min-width: 18px; |
| 489 | + height: 18px; |
| 490 | + padding: 0 5px; |
| 491 | + border-radius: 6px; |
| 492 | + background: var(--subtle); |
| 493 | + color: var(--muted); |
| 494 | + font-size: 10px; |
| 495 | + font-variant-numeric: tabular-nums; |
| 496 | +} |
| 497 | + |
| 498 | +.chat-shell .sidebar-bucket-footer { |
| 499 | + display: flex; |
| 500 | + align-items: center; |
| 501 | + justify-content: space-between; |
| 502 | + gap: 8px; |
| 503 | + margin: 8px -14px -12px; |
| 504 | + padding: 9px 16px; |
| 505 | + border-top: 1px solid var(--line); |
| 506 | + background: var(--subtle); |
| 507 | + color: var(--muted); |
| 508 | + font-size: 11.5px; |
| 509 | +} |
| 510 | + |
| 511 | +.chat-shell .sidebar-bucket-footer button { |
| 512 | + border: 0; |
| 513 | + background: transparent; |
| 514 | + color: var(--hui-accent, #7b61ff); |
| 515 | + font-size: 11.5px; |
| 516 | + font-weight: 500; |
| 517 | + cursor: pointer; |
| 518 | +} |
| 519 | + |
| 520 | +.chat-shell .sidebar-bucket-footer button:hover { |
| 521 | + text-decoration: underline; |
| 522 | +} |
| 523 | + |
| 524 | +/* Scheduled session main context banner */ |
| 525 | +.chat-shell .scheduled-context-banner { |
| 526 | + display: flex; |
| 527 | + align-items: center; |
| 528 | + justify-content: space-between; |
| 529 | + flex-wrap: wrap; |
| 530 | + gap: 8px 14px; |
| 531 | + padding: 9px 24px; |
| 532 | + border-bottom: 1px solid var(--line); |
| 533 | + background: var(--subtle); |
| 534 | + font-size: 12px; |
| 535 | +} |
| 536 | + |
| 537 | +.chat-shell .scheduled-context-meta { |
| 538 | + display: flex; |
| 539 | + align-items: center; |
| 540 | + flex-wrap: wrap; |
| 541 | + gap: 6px 10px; |
| 542 | + min-width: 0; |
| 543 | + color: var(--muted); |
| 544 | +} |
| 545 | + |
| 546 | +.chat-shell .scheduled-context-meta b { |
| 547 | + color: var(--text); |
| 548 | + font-weight: 600; |
| 549 | +} |
| 550 | + |
| 551 | +.chat-shell .scheduled-context-actions { |
| 552 | + display: inline-flex; |
| 553 | + align-items: center; |
| 554 | + gap: 6px; |
| 555 | + flex-shrink: 0; |
| 556 | +} |
| 557 | + |
| 558 | +.chat-shell .scheduled-action-btn { |
| 559 | + display: inline-flex; |
| 560 | + align-items: center; |
| 561 | + gap: 5px; |
| 562 | + height: 28px; |
| 563 | + padding: 0 10px; |
| 564 | + border: 1px solid var(--line); |
| 565 | + border-radius: 7px; |
| 566 | + background: var(--surface); |
| 567 | + color: var(--text); |
| 568 | + font-size: 12px; |
| 569 | + font-weight: 500; |
| 570 | + cursor: pointer; |
| 571 | +} |
| 572 | + |
| 573 | +.chat-shell .scheduled-action-btn:hover:not(:disabled) { |
| 574 | + background: var(--hover); |
| 575 | +} |
| 576 | + |
| 577 | +.chat-shell .scheduled-action-btn:disabled { |
| 578 | + opacity: 0.5; |
| 579 | + cursor: not-allowed; |
| 580 | +} |
| 581 | + |
| 582 | +@media (prefers-reduced-motion: reduce) { |
| 583 | + .chat-shell .sidebar-tab-dot[data-tone="running"] { |
| 584 | + animation: none; |
| 585 | + } |
269 | 586 | } |
270 | 587 |
|
271 | 588 | .chat-shell .sidebar-create-row .new-chat-button { |
|
0 commit comments