1
0

agents.css 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302
  1. /**--- Agents ---**/
  2. .bx-agt-aica svg {
  3. width: 1rem;
  4. height: 1rem;
  5. }
  6. .bx-grid-table .bx-gc-icon svg,
  7. .bx-grid-table .bx-gc-icon img,
  8. .bx-grid-table .bx-gc-model_id svg,
  9. .bx-grid-table .bx-gc-trigger svg {
  10. width: 1.5rem;
  11. height: 1.5rem;
  12. vertical-align: middle;
  13. }
  14. #grid-popup-sys_studio_agents_agents-message .bx-popup-width {
  15. width: 68rem;
  16. max-width: calc(100vw - 2rem);
  17. }
  18. .bx-agents-popup-chat-wrap {
  19. display: flex;
  20. gap: 0.75rem;
  21. min-height: 32rem;
  22. max-height: min(36rem, calc(100vh - 10rem));
  23. }
  24. .bx-agents-popup-chat-list {
  25. flex: 0 0 15.5rem;
  26. width: 15.5rem;
  27. display: flex;
  28. flex-direction: column;
  29. min-height: 0;
  30. border-right: 1px solid rgba(0,0,0,.08);
  31. padding-right: 0.75rem;
  32. }
  33. .bx-agents-popup-chat-list-title {
  34. font-weight: 600;
  35. margin-bottom: 0.5rem;
  36. }
  37. .bx-agents-popup-chat-list-items {
  38. overflow-y: auto;
  39. flex: 1 1 auto;
  40. min-height: 0;
  41. display: flex;
  42. flex-direction: column;
  43. gap: 0.25rem;
  44. }
  45. .bx-agents-popup-chat-thread {
  46. display: block;
  47. width: 100%;
  48. text-align: left;
  49. border: 0;
  50. background: transparent;
  51. padding: 0.5rem 0.6rem;
  52. border-radius: 0.4rem;
  53. cursor: pointer;
  54. }
  55. .bx-agents-popup-chat-thread:hover,
  56. .bx-agents-popup-chat-thread-active {
  57. background: rgba(37, 99, 235, .08);
  58. }
  59. .bx-agents-popup-chat-thread-title {
  60. display: block;
  61. overflow: hidden;
  62. text-overflow: ellipsis;
  63. white-space: nowrap;
  64. }
  65. .bx-agents-popup-chat-thread-meta {
  66. display: block;
  67. font-size: 0.75rem;
  68. margin-top: 0.15rem;
  69. white-space: pre-line;
  70. line-height: 1.25;
  71. }
  72. .bx-agents-popup-chat-thread-status-opened {
  73. color: #15803d;
  74. }
  75. .bx-agents-popup-chat-thread-status-closed {
  76. color: #b45309;
  77. }
  78. .bx-agents-popup-chat-thread-dates {
  79. display: block;
  80. font-size: 0.7rem;
  81. opacity: .6;
  82. margin-top: 0.1rem;
  83. line-height: 1.25;
  84. }
  85. .bx-agents-popup-chat-thread-dates span {
  86. display: block;
  87. }
  88. .bx-agents-popup-chat-artifacts {
  89. flex: 0 0 auto;
  90. margin: 0 0 0.5rem;
  91. padding: 0.5rem 0.65rem;
  92. font-size: 0.8rem;
  93. line-height: 1.35;
  94. border: 1px solid rgba(0,0,0,.12);
  95. border-radius: 0.4rem;
  96. max-height: 8rem;
  97. overflow-y: auto;
  98. background: #fffbe6;
  99. }
  100. .bx-agents-popup-chat-artifacts-row {
  101. display: flex;
  102. gap: 0.5rem;
  103. min-width: 0;
  104. }
  105. .bx-agents-popup-chat-artifacts-k {
  106. flex: 0 0 7rem;
  107. font-weight: 600;
  108. opacity: .7;
  109. overflow: hidden;
  110. text-overflow: ellipsis;
  111. white-space: nowrap;
  112. }
  113. .bx-agents-popup-chat-artifacts-v {
  114. flex: 1 1 auto;
  115. min-width: 0;
  116. overflow-wrap: anywhere;
  117. }
  118. .bx-agents-popup-chat-artifacts-empty {
  119. opacity: .6;
  120. }
  121. .bx-agents-popup-chat-main {
  122. flex: 1 1 auto;
  123. min-width: 0;
  124. display: flex;
  125. flex-direction: column;
  126. }
  127. .bx-agents-popup-chat {
  128. height: auto;
  129. flex: 1 1 auto;
  130. min-height: 16rem;
  131. }
  132. .bx-agents-popup-chat-note {
  133. margin-top: 0.5rem;
  134. font-size: 0.8rem;
  135. opacity: .7;
  136. }
  137. /**--- Automators ---**/
  138. .cmt .bx-menu-custom.bx-menu-custom-hor > li > span {
  139. margin-right: 0;
  140. }
  141. .cmt .bx-base-general-unit-meta ul.bx-menu-custom li:first-child .bx-base-general-unit-meta-div {
  142. display: none;
  143. }
  144. .bx-def-vanilla-html pre,
  145. .cmt-body.bx-def-vanilla-html pre{
  146. max-height: 20rem;
  147. border-width: 0;
  148. border-radius: 0.375rem;
  149. background-color: #1f2937;
  150. color: #e5e7eb;
  151. }
  152. /*-- Automators form: Providers --*/
  153. .bx-form-input-provider {
  154. display: -webkit-flex;
  155. display: flex;
  156. -webkit-align-items: center;
  157. align-items: center;
  158. }
  159. .bx-form-input-provider-cell.bx-fi-pc-txt {
  160. -webkit-flex: 1 1 auto;
  161. -ms-flex: 1 1 auto;
  162. flex: 1 1 auto;
  163. }
  164. .bx-form-input-provider-cell.bx-fi-pc-btn {
  165. -webkit-flex: 0 0 auto;
  166. -ms-flex: 0 0 auto;
  167. flex: 0 0 auto;
  168. }
  169. .bx-form-input-provider-add {
  170. text-align: right;
  171. }
  172. .bx-form-input-provider-add .bx-form-input-button {
  173. display: inline-block;
  174. float: none;
  175. }
  176. /*-- Automators form: Tools --*/
  177. .bx-form-input-tools {
  178. display: -webkit-flex;
  179. display: flex;
  180. -webkit-align-items: center;
  181. align-items: center;
  182. }
  183. .bx-form-input-tools-cell.bx-fi-pc-txt {
  184. -webkit-flex: 1 1 auto;
  185. -ms-flex: 1 1 auto;
  186. flex: 1 1 auto;
  187. }
  188. .bx-form-input-tools-cell.bx-fi-pc-btn {
  189. -webkit-flex: 0 0 auto;
  190. -ms-flex: 0 0 auto;
  191. flex: 0 0 auto;
  192. }
  193. .bx-form-input-tools-add {
  194. text-align: right;
  195. }
  196. .bx-form-input-tools-add .bx-form-input-button {
  197. display: inline-block;
  198. float: none;
  199. }
  200. /*-- Automators form: Helpers --*/
  201. .bx-form-input-helper {
  202. display: -webkit-flex;
  203. display: flex;
  204. -webkit-align-items: center;
  205. align-items: center;
  206. }
  207. .bx-form-input-helper-cell.bx-fi-hc-txt {
  208. -webkit-flex: 1 1 auto;
  209. -ms-flex: 1 1 auto;
  210. flex: 1 1 auto;
  211. }
  212. .bx-form-input-helper-cell.bx-fi-hc-btn {
  213. -webkit-flex: 0 0 auto;
  214. -ms-flex: 0 0 auto;
  215. flex: 0 0 auto;
  216. }
  217. .bx-form-input-helper-add {
  218. text-align: right;
  219. }
  220. .bx-form-input-helper-add .bx-form-input-button {
  221. display: inline-block;
  222. float: none;
  223. }
  224. /*-- Automators form: Assistants --*/
  225. .bx-form-input-assistant {
  226. display: -webkit-flex;
  227. display: flex;
  228. -webkit-align-items: center;
  229. align-items: center;
  230. }
  231. .bx-form-input-assistant-cell.bx-fi-ac-txt {
  232. -webkit-flex: 1 1 auto;
  233. -ms-flex: 1 1 auto;
  234. flex: 1 1 auto;
  235. }
  236. .bx-form-input-assistant-cell.bx-fi-ac-btn {
  237. -webkit-flex: 0 0 auto;
  238. -ms-flex: 0 0 auto;
  239. flex: 0 0 auto;
  240. }
  241. .bx-form-input-assistant-add {
  242. text-align: right;
  243. }
  244. .bx-form-input-assistant-add .bx-form-input-button {
  245. display: inline-block;
  246. float: none;
  247. }
  248. #bx-agents-agents-alert-payload pre {
  249. max-height:250px;
  250. overflow:scroll;
  251. }
  252. .select2-container {
  253. z-index: 999999 !important;
  254. }
  255. .select2-container .select2-selection--single {
  256. height: 30px;
  257. }
  258. .bx-agents-automator-form .select2-container {
  259. width: 100% !important;
  260. }
  261. #bx_std_agents_add_popup .bx-popup,
  262. #bx_std_agents_edit_popup .bx-popup {
  263. overflow: visible;
  264. }
  265. .select2-results__option .bx-alert-wrap {
  266. display:flex;
  267. justify-content:space-between;
  268. gap:10px;
  269. width:100%;
  270. }
  271. .select2-results__option .bx-alert-text {
  272. font-weight:600;
  273. }
  274. .select2-results__option .bx-alert-desc {
  275. font-size:12px;
  276. color:#888;
  277. }
  278. .select2-results__option .bx-alert-counter {
  279. padding:2px 8px;
  280. border-radius:10px;
  281. font-size:12px;
  282. height:fit-content;
  283. }
  284. /* Agent cards on the block's 16px content line: the list's -4px pull plus this 4px puts a card's 4px margin at 8px + 8px. */
  285. div.bx-std-block-content > .bx-agt-agents {
  286. width: calc(100% - 0.5rem); /* the template's w-full assumed the old negative margins */
  287. margin: 0.25rem;
  288. }