agent-loft 0.2.24 → 0.2.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/web/style.css CHANGED
@@ -984,6 +984,46 @@ button.conv-group:hover {
984
984
  overflow-y: auto;
985
985
  overscroll-behavior: contain;
986
986
  scroll-behavior: auto;
987
+ /* 留白(.messages-spacer)按消息的 offsetTop 计算,要以滚动容器为准 */
988
+ position: relative;
989
+ outline: none;
990
+ }
991
+
992
+ /* 发出消息后把它顶到最上面用的留白,高度由 app.js 算 */
993
+ .messages-spacer {
994
+ height: 0;
995
+ flex-shrink: 0;
996
+ }
997
+
998
+ /* 自己往上翻了之后出现:点一下回到底部、恢复自动滚动 */
999
+ .to-bottom {
1000
+ position: absolute;
1001
+ left: 50%;
1002
+ bottom: calc(100% + 10px);
1003
+ transform: translateX(-50%);
1004
+ z-index: 5;
1005
+ width: 34px;
1006
+ height: 34px;
1007
+ border-radius: 50%;
1008
+ display: grid;
1009
+ place-items: center;
1010
+ background: var(--bg);
1011
+ color: var(--fg-soft);
1012
+ border: 1px solid var(--border);
1013
+ box-shadow: var(--shadow);
1014
+ }
1015
+
1016
+ .to-bottom:hover {
1017
+ color: var(--fg);
1018
+ }
1019
+
1020
+ .to-bottom[hidden] {
1021
+ display: none;
1022
+ }
1023
+
1024
+ .to-bottom svg {
1025
+ width: 18px;
1026
+ height: 18px;
987
1027
  }
988
1028
 
989
1029
  .messages-inner {
@@ -1978,6 +2018,26 @@ button.ctx-item:hover {
1978
2018
  flex-shrink: 0;
1979
2019
  }
1980
2020
 
2021
+ .mode-pill {
2022
+ display: inline-flex;
2023
+ align-items: center;
2024
+ height: 32px;
2025
+ padding: 0 10px;
2026
+ border-radius: 999px;
2027
+ font-size: 13px;
2028
+ color: var(--fg-faint);
2029
+ white-space: nowrap;
2030
+ }
2031
+
2032
+ .mode-pill:hover {
2033
+ background: var(--bg-hover);
2034
+ color: var(--fg);
2035
+ }
2036
+
2037
+ .mode-pill.chat {
2038
+ color: var(--accent);
2039
+ }
2040
+
1981
2041
  .composer.drag {
1982
2042
  border-color: var(--accent);
1983
2043
  }
@@ -2318,6 +2378,7 @@ textarea.sending {
2318
2378
  font-size: 14px;
2319
2379
  line-height: 1.6;
2320
2380
  color: var(--fg-soft);
2381
+ white-space: pre-line;
2321
2382
  }
2322
2383
 
2323
2384
  .dialog-foot .btn.danger-fill {
@@ -3298,3 +3359,102 @@ button.list-item:hover {
3298
3359
  .in-desktop .side-top :is(button, a, input, select, textarea, label) {
3299
3360
  -webkit-app-region: no-drag;
3300
3361
  }
3362
+
3363
+ /* ---------- 定时发送 ---------- */
3364
+
3365
+ .sched-bar {
3366
+ display: flex;
3367
+ flex-direction: column;
3368
+ gap: 4px;
3369
+ margin: 0 14px 6px;
3370
+ }
3371
+
3372
+ .sched-bar[hidden] {
3373
+ display: none;
3374
+ }
3375
+
3376
+ .sched-item {
3377
+ display: flex;
3378
+ align-items: center;
3379
+ gap: 8px;
3380
+ min-width: 0;
3381
+ padding: 6px 6px 6px 10px;
3382
+ border: 1px solid var(--border);
3383
+ border-radius: 12px;
3384
+ background: var(--bg-soft);
3385
+ font-size: 13px;
3386
+ color: var(--fg-soft);
3387
+ }
3388
+
3389
+ .sched-item svg {
3390
+ width: 15px;
3391
+ height: 15px;
3392
+ flex-shrink: 0;
3393
+ color: var(--accent);
3394
+ }
3395
+
3396
+ .sched-when {
3397
+ flex-shrink: 0;
3398
+ color: var(--fg);
3399
+ font-weight: 500;
3400
+ }
3401
+
3402
+ .sched-text {
3403
+ flex: 1;
3404
+ min-width: 0;
3405
+ overflow: hidden;
3406
+ text-overflow: ellipsis;
3407
+ white-space: nowrap;
3408
+ }
3409
+
3410
+ .sched-act {
3411
+ flex-shrink: 0;
3412
+ padding: 3px 8px;
3413
+ border-radius: 8px;
3414
+ font-size: 12px;
3415
+ color: var(--fg-soft);
3416
+ }
3417
+
3418
+ .sched-act:hover {
3419
+ background: var(--bg-hover);
3420
+ color: var(--fg);
3421
+ }
3422
+
3423
+ .sched-input {
3424
+ width: 100%;
3425
+ box-sizing: border-box;
3426
+ resize: vertical;
3427
+ padding: 10px 12px;
3428
+ border: 1px solid var(--border);
3429
+ border-radius: 10px;
3430
+ background: var(--bg-input);
3431
+ color: var(--fg);
3432
+ font: inherit;
3433
+ }
3434
+
3435
+ .sched-presets {
3436
+ display: flex;
3437
+ flex-wrap: wrap;
3438
+ gap: 6px;
3439
+ }
3440
+
3441
+ .sched-presets .btn {
3442
+ font-size: 13px;
3443
+ }
3444
+
3445
+ .sched-row {
3446
+ display: flex;
3447
+ align-items: center;
3448
+ gap: 10px;
3449
+ }
3450
+
3451
+ .sched-time {
3452
+ flex: 1;
3453
+ padding: 7px 10px;
3454
+ border: 1px solid var(--border);
3455
+ border-radius: 10px;
3456
+ background: var(--bg-input);
3457
+ color: var(--fg);
3458
+ font: inherit;
3459
+ color-scheme: light dark;
3460
+ }