session-turn.css 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321
  1. [data-component="session-turn"] {
  2. /* flex: 1; */
  3. height: 100%;
  4. min-height: 0;
  5. min-width: 0;
  6. display: flex;
  7. align-items: flex-start;
  8. justify-content: flex-start;
  9. [data-slot="session-turn-content"] {
  10. flex-grow: 1;
  11. width: 100%;
  12. height: 100%;
  13. min-width: 0;
  14. overflow-y: auto;
  15. scrollbar-width: none;
  16. }
  17. [data-slot="session-turn-content"]::-webkit-scrollbar {
  18. display: none;
  19. }
  20. [data-slot="session-turn-message-container"] {
  21. display: flex;
  22. flex-direction: column;
  23. align-items: flex-start;
  24. align-self: stretch;
  25. min-width: 0;
  26. gap: 32px;
  27. }
  28. [data-slot="session-turn-message-header"] {
  29. display: flex;
  30. align-items: center;
  31. gap: 8px;
  32. align-self: stretch;
  33. position: sticky;
  34. top: 0;
  35. background-color: var(--background-stronger);
  36. z-index: 20;
  37. height: 32px;
  38. }
  39. [data-slot="session-turn-message-content"] {
  40. margin-top: -24px;
  41. }
  42. [data-slot="session-turn-message-title"] {
  43. width: 100%;
  44. font-size: 14px; /* text-14-medium */
  45. font-weight: 500;
  46. color: var(--text-strong);
  47. overflow: hidden;
  48. text-overflow: ellipsis;
  49. min-width: 0;
  50. white-space: nowrap;
  51. }
  52. [data-slot="session-turn-message-title"] h1 {
  53. overflow: hidden;
  54. text-overflow: ellipsis;
  55. min-width: 0;
  56. white-space: nowrap;
  57. font-size: inherit;
  58. font-weight: inherit;
  59. }
  60. [data-slot="session-turn-typewriter"] {
  61. overflow: hidden;
  62. text-overflow: ellipsis;
  63. min-width: 0;
  64. white-space: nowrap;
  65. }
  66. [data-slot="session-turn-summary-section"] {
  67. width: 100%;
  68. display: flex;
  69. flex-direction: column;
  70. gap: 24px;
  71. align-items: flex-start;
  72. align-self: stretch;
  73. }
  74. [data-slot="session-turn-summary-header"] {
  75. display: flex;
  76. flex-direction: column;
  77. align-items: flex-start;
  78. gap: 4px;
  79. align-self: stretch;
  80. }
  81. [data-slot="session-turn-summary-title"] {
  82. font-size: 12px; /* text-12-medium */
  83. font-weight: 500;
  84. color: var(--text-weak);
  85. }
  86. [data-slot="session-turn-markdown"] {
  87. &[data-diffs="true"] {
  88. font-size: 14px; /* text-14-regular */
  89. }
  90. &[data-fade="true"] > * {
  91. animation: fadeUp 0.4s ease-out forwards;
  92. opacity: 0;
  93. &:nth-child(1) {
  94. animation-delay: 0.1s;
  95. }
  96. &:nth-child(2) {
  97. animation-delay: 0.2s;
  98. }
  99. &:nth-child(3) {
  100. animation-delay: 0.3s;
  101. }
  102. &:nth-child(4) {
  103. animation-delay: 0.4s;
  104. }
  105. &:nth-child(5) {
  106. animation-delay: 0.5s;
  107. }
  108. &:nth-child(6) {
  109. animation-delay: 0.6s;
  110. }
  111. &:nth-child(7) {
  112. animation-delay: 0.7s;
  113. }
  114. &:nth-child(8) {
  115. animation-delay: 0.8s;
  116. }
  117. &:nth-child(9) {
  118. animation-delay: 0.9s;
  119. }
  120. &:nth-child(10) {
  121. animation-delay: 1s;
  122. }
  123. &:nth-child(11) {
  124. animation-delay: 1.1s;
  125. }
  126. &:nth-child(12) {
  127. animation-delay: 1.2s;
  128. }
  129. &:nth-child(13) {
  130. animation-delay: 1.3s;
  131. }
  132. &:nth-child(14) {
  133. animation-delay: 1.4s;
  134. }
  135. &:nth-child(15) {
  136. animation-delay: 1.5s;
  137. }
  138. &:nth-child(16) {
  139. animation-delay: 1.6s;
  140. }
  141. &:nth-child(17) {
  142. animation-delay: 1.7s;
  143. }
  144. &:nth-child(18) {
  145. animation-delay: 1.8s;
  146. }
  147. &:nth-child(19) {
  148. animation-delay: 1.9s;
  149. }
  150. &:nth-child(20) {
  151. animation-delay: 2s;
  152. }
  153. &:nth-child(21) {
  154. animation-delay: 2.1s;
  155. }
  156. &:nth-child(22) {
  157. animation-delay: 2.2s;
  158. }
  159. &:nth-child(23) {
  160. animation-delay: 2.3s;
  161. }
  162. &:nth-child(24) {
  163. animation-delay: 2.4s;
  164. }
  165. &:nth-child(25) {
  166. animation-delay: 2.5s;
  167. }
  168. &:nth-child(26) {
  169. animation-delay: 2.6s;
  170. }
  171. &:nth-child(27) {
  172. animation-delay: 2.7s;
  173. }
  174. &:nth-child(28) {
  175. animation-delay: 2.8s;
  176. }
  177. &:nth-child(29) {
  178. animation-delay: 2.9s;
  179. }
  180. &:nth-child(30) {
  181. animation-delay: 3s;
  182. }
  183. }
  184. }
  185. [data-slot="session-turn-accordion"] {
  186. width: 100%;
  187. }
  188. [data-component="sticky-accordion-header"] {
  189. top: 40px;
  190. &[data-expanded]::before {
  191. top: -40px;
  192. }
  193. }
  194. [data-slot="session-turn-accordion-trigger-content"] {
  195. display: flex;
  196. align-items: center;
  197. justify-content: space-between;
  198. width: 100%;
  199. gap: 20px;
  200. }
  201. [data-slot="session-turn-file-info"] {
  202. flex-grow: 1;
  203. display: flex;
  204. align-items: center;
  205. gap: 20px;
  206. min-width: 0;
  207. }
  208. [data-slot="session-turn-file-icon"] {
  209. flex-shrink: 0;
  210. width: 16px;
  211. height: 16px;
  212. }
  213. [data-slot="session-turn-file-path"] {
  214. display: flex;
  215. flex-grow: 1;
  216. min-width: 0;
  217. }
  218. [data-slot="session-turn-directory"] {
  219. color: var(--text-base);
  220. text-overflow: ellipsis;
  221. overflow: hidden;
  222. white-space: nowrap;
  223. direction: rtl;
  224. text-align: left;
  225. }
  226. [data-slot="session-turn-filename"] {
  227. color: var(--text-strong);
  228. flex-shrink: 0;
  229. }
  230. [data-slot="session-turn-accordion-actions"] {
  231. flex-shrink: 0;
  232. display: flex;
  233. gap: 16px;
  234. align-items: center;
  235. justify-content: flex-end;
  236. }
  237. [data-slot="session-turn-accordion-content"] {
  238. max-height: 240px; /* max-h-60 */
  239. overflow-y: auto;
  240. scrollbar-width: none;
  241. }
  242. [data-slot="session-turn-accordion-content"]::-webkit-scrollbar {
  243. display: none;
  244. }
  245. [data-slot="session-turn-response-section"] {
  246. width: calc(100% + 9px);
  247. min-width: 0;
  248. margin-left: -9px;
  249. padding-left: 9px;
  250. }
  251. [data-slot="session-turn-collapsible"] {
  252. gap: 32px;
  253. overflow: visible;
  254. }
  255. [data-slot="session-turn-collapsible-trigger-content"] {
  256. width: fit-content;
  257. display: flex;
  258. align-items: center;
  259. gap: 4px;
  260. color: var(--text-weak);
  261. margin-left: -9px;
  262. [data-component="spinner"] {
  263. width: 12px;
  264. height: 12px;
  265. margin-right: 4px;
  266. }
  267. [data-component="icon"] {
  268. width: 14px;
  269. height: 14px;
  270. }
  271. }
  272. [data-slot="session-turn-details-text"] {
  273. font-size: 12px; /* text-12-medium */
  274. font-weight: 500;
  275. }
  276. .error-card {
  277. color: var(--text-on-critical-base);
  278. }
  279. [data-slot="session-turn-collapsible-content-inner"] {
  280. width: 100%;
  281. min-width: 0;
  282. display: flex;
  283. flex-direction: column;
  284. align-self: stretch;
  285. gap: 12px;
  286. }
  287. }