web-mojo 2.2.85 → 2.2.87

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/dist/admin.css CHANGED
@@ -896,7 +896,14 @@
896
896
 
897
897
  .assistant-chat-area .message-text {
898
898
  font-size: 0.9rem;
899
- line-height: 1.65;
899
+ line-height: 1.5;
900
+ }
901
+
902
+ /* Override pre-wrap for assistant markdown — HTML block elements
903
+ provide their own spacing; pre-wrap adds visible whitespace
904
+ between tags like <p>, <ol>, <li> */
905
+ .assistant-chat-area .message-assistant .message-text {
906
+ white-space: normal;
900
907
  }
901
908
 
902
909
  /* ── Custom Input Area ────────────────────────────────────── */
@@ -917,7 +924,9 @@
917
924
  padding: 8px 8px 8px 18px;
918
925
  background: #fff;
919
926
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
920
- transition: border-color 0.2s, box-shadow 0.2s;
927
+ transition:
928
+ border-color 0.2s,
929
+ box-shadow 0.2s;
921
930
  }
922
931
 
923
932
  .assistant-input-box:focus-within {
@@ -955,7 +964,9 @@
955
964
  justify-content: center;
956
965
  cursor: pointer;
957
966
  flex-shrink: 0;
958
- transition: background-color 0.15s, opacity 0.15s;
967
+ transition:
968
+ background-color 0.15s,
969
+ opacity 0.15s;
959
970
  font-size: 1rem;
960
971
  }
961
972
 
@@ -981,7 +992,9 @@
981
992
  justify-content: center;
982
993
  cursor: pointer;
983
994
  flex-shrink: 0;
984
- transition: border-color 0.15s, color 0.15s;
995
+ transition:
996
+ border-color 0.15s,
997
+ color 0.15s;
985
998
  font-size: 0.9rem;
986
999
  }
987
1000
 
@@ -1024,8 +1037,13 @@
1024
1037
  }
1025
1038
 
1026
1039
  @keyframes pulse-dot {
1027
- 0%, 100% { opacity: 1; }
1028
- 50% { opacity: 0.4; }
1040
+ 0%,
1041
+ 100% {
1042
+ opacity: 1;
1043
+ }
1044
+ 50% {
1045
+ opacity: 0.4;
1046
+ }
1029
1047
  }
1030
1048
 
1031
1049
  /* ── Thinking Indicator ───────────────────────────────────── */
@@ -1061,13 +1079,25 @@
1061
1079
  animation: thinking-bounce 1.4s infinite ease-in-out both;
1062
1080
  }
1063
1081
 
1064
- .chat-thinking-dots span:nth-child(1) { animation-delay: -0.32s; }
1065
- .chat-thinking-dots span:nth-child(2) { animation-delay: -0.16s; }
1066
- .chat-thinking-dots span:nth-child(3) { animation-delay: 0s; }
1082
+ .chat-thinking-dots span:nth-child(1) {
1083
+ animation-delay: -0.32s;
1084
+ }
1085
+ .chat-thinking-dots span:nth-child(2) {
1086
+ animation-delay: -0.16s;
1087
+ }
1088
+ .chat-thinking-dots span:nth-child(3) {
1089
+ animation-delay: 0s;
1090
+ }
1067
1091
 
1068
1092
  @keyframes thinking-bounce {
1069
- 0%, 80%, 100% { transform: scale(0); }
1070
- 40% { transform: scale(1); }
1093
+ 0%,
1094
+ 80%,
1095
+ 100% {
1096
+ transform: scale(0);
1097
+ }
1098
+ 40% {
1099
+ transform: scale(1);
1100
+ }
1071
1101
  }
1072
1102
 
1073
1103
  .chat-thinking-timer {
@@ -1208,11 +1238,13 @@
1208
1238
 
1209
1239
  .mini-pie-segment {
1210
1240
  cursor: pointer;
1211
- transition: filter 0.15s, stroke-width 0.15s;
1241
+ transition:
1242
+ filter 0.15s,
1243
+ stroke-width 0.15s;
1212
1244
  }
1213
1245
 
1214
1246
  .mini-pie-segment:hover {
1215
- filter: brightness(1.12) drop-shadow(0 0 4px rgba(0,0,0,0.2));
1247
+ filter: brightness(1.12) drop-shadow(0 0 4px rgba(0, 0, 0, 0.2));
1216
1248
  stroke-width: 2.5;
1217
1249
  }
1218
1250
 
@@ -1246,7 +1278,7 @@
1246
1278
  font-size: 0.78rem;
1247
1279
  line-height: 1.3;
1248
1280
  white-space: nowrap;
1249
- box-shadow: 0 2px 6px rgba(0,0,0,0.12);
1281
+ box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
1250
1282
  z-index: 10;
1251
1283
  }
1252
1284
 
@@ -1305,7 +1337,7 @@
1305
1337
  font-size: 0.78rem;
1306
1338
  line-height: 1.4;
1307
1339
  white-space: nowrap;
1308
- box-shadow: 0 2px 6px rgba(0,0,0,0.12);
1340
+ box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
1309
1341
  z-index: 10;
1310
1342
  }
1311
1343
 
@@ -1366,7 +1398,7 @@
1366
1398
  }
1367
1399
 
1368
1400
  .mini-series-bar:hover {
1369
- filter: brightness(1.15) drop-shadow(0 0 3px rgba(0,0,0,0.2));
1401
+ filter: brightness(1.15) drop-shadow(0 0 3px rgba(0, 0, 0, 0.2));
1370
1402
  }
1371
1403
 
1372
1404
  .mini-series-dot {
@@ -1378,7 +1410,7 @@
1378
1410
  }
1379
1411
 
1380
1412
  .mini-series-dot:hover {
1381
- filter: brightness(1.12) drop-shadow(0 0 4px rgba(0,0,0,0.25));
1413
+ filter: brightness(1.12) drop-shadow(0 0 4px rgba(0, 0, 0, 0.25));
1382
1414
  r: 5;
1383
1415
  }
1384
1416
 
@@ -1419,29 +1451,76 @@
1419
1451
  .message-assistant .message-text h5,
1420
1452
  .message-assistant .message-text h6 {
1421
1453
  font-weight: 600;
1422
- margin-top: 16px;
1423
- margin-bottom: 6px;
1454
+ margin-top: 12px;
1455
+ margin-bottom: 4px;
1424
1456
  line-height: 1.3;
1425
1457
  }
1426
1458
 
1427
- .message-assistant .message-text h3 { font-size: 1rem; }
1428
- .message-assistant .message-text h4 { font-size: 0.95rem; }
1459
+ .message-assistant .message-text h1 {
1460
+ font-size: 1.1rem;
1461
+ }
1462
+ .message-assistant .message-text h2 {
1463
+ font-size: 1.05rem;
1464
+ }
1465
+ .message-assistant .message-text h3 {
1466
+ font-size: 1rem;
1467
+ }
1468
+ .message-assistant .message-text h4 {
1469
+ font-size: 0.95rem;
1470
+ }
1429
1471
  .message-assistant .message-text h5,
1430
- .message-assistant .message-text h6 { font-size: 0.9rem; }
1472
+ .message-assistant .message-text h6 {
1473
+ font-size: 0.9rem;
1474
+ }
1475
+
1476
+ .message-assistant .message-text h1:first-child,
1477
+ .message-assistant .message-text h2:first-child,
1478
+ .message-assistant .message-text h3:first-child {
1479
+ margin-top: 0;
1480
+ }
1431
1481
 
1432
1482
  .message-assistant .message-text hr {
1433
- margin: 12px 0;
1483
+ margin: 4px 0;
1434
1484
  opacity: 0.15;
1435
1485
  }
1436
1486
 
1487
+ /* ── Collapsible long messages ─────────────────────────────── */
1488
+
1489
+ .message-assistant .message-text.message-collapsed {
1490
+ max-height: var(--collapse-height, 300px);
1491
+ overflow: hidden;
1492
+ position: relative;
1493
+ -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
1494
+ mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
1495
+ }
1496
+
1497
+ .message-expand-toggle {
1498
+ display: block;
1499
+ background: none;
1500
+ border: 1px solid var(--bs-border-color);
1501
+ border-radius: 6px;
1502
+ padding: 4px 12px;
1503
+ margin-top: 6px;
1504
+ font-size: 0.78rem;
1505
+ color: var(--bs-secondary-color);
1506
+ cursor: pointer;
1507
+ transition: background-color 0.15s;
1508
+ }
1509
+
1510
+ .message-expand-toggle:hover {
1511
+ background: var(--bs-tertiary-bg);
1512
+ color: var(--bs-body-color);
1513
+ }
1514
+
1437
1515
  .message-assistant .message-text ul,
1438
1516
  .message-assistant .message-text ol {
1439
1517
  padding-left: 20px;
1440
- margin-bottom: 8px;
1518
+ margin-top: 2px;
1519
+ margin-bottom: 6px;
1441
1520
  }
1442
1521
 
1443
1522
  .message-assistant .message-text li {
1444
- margin-bottom: 4px;
1523
+ margin-bottom: 2px;
1445
1524
  }
1446
1525
 
1447
1526
  .message-assistant .message-text pre {
@@ -1466,7 +1545,7 @@
1466
1545
  }
1467
1546
 
1468
1547
  .message-assistant .message-text p {
1469
- margin-bottom: 8px;
1548
+ margin-bottom: 6px;
1470
1549
  }
1471
1550
 
1472
1551
  .message-assistant .message-text p:last-child {
@@ -1694,8 +1773,13 @@
1694
1773
  }
1695
1774
 
1696
1775
  @keyframes assistant-pulse {
1697
- 0%, 100% { opacity: 1; }
1698
- 50% { opacity: 0.4; }
1776
+ 0%,
1777
+ 100% {
1778
+ opacity: 1;
1779
+ }
1780
+ 50% {
1781
+ opacity: 0.4;
1782
+ }
1699
1783
  }
1700
1784
 
1701
1785
  /* ── Responsive ───────────────────────────────────────────── */