session-turn.css 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220
  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: fade-up-text 0.3s ease-out forwards;
  92. }
  93. }
  94. [data-slot="session-turn-accordion"] {
  95. width: 100%;
  96. }
  97. [data-component="sticky-accordion-header"] {
  98. top: 40px;
  99. &[data-expanded]::before {
  100. top: -40px;
  101. }
  102. }
  103. [data-slot="session-turn-accordion-trigger-content"] {
  104. display: flex;
  105. align-items: center;
  106. justify-content: space-between;
  107. width: 100%;
  108. gap: 20px;
  109. }
  110. [data-slot="session-turn-file-info"] {
  111. flex-grow: 1;
  112. display: flex;
  113. align-items: center;
  114. gap: 20px;
  115. min-width: 0;
  116. }
  117. [data-slot="session-turn-file-icon"] {
  118. flex-shrink: 0;
  119. width: 16px;
  120. height: 16px;
  121. }
  122. [data-slot="session-turn-file-path"] {
  123. display: flex;
  124. flex-grow: 1;
  125. min-width: 0;
  126. }
  127. [data-slot="session-turn-directory"] {
  128. color: var(--text-base);
  129. text-overflow: ellipsis;
  130. overflow: hidden;
  131. white-space: nowrap;
  132. direction: rtl;
  133. text-align: left;
  134. }
  135. [data-slot="session-turn-filename"] {
  136. color: var(--text-strong);
  137. flex-shrink: 0;
  138. }
  139. [data-slot="session-turn-accordion-actions"] {
  140. flex-shrink: 0;
  141. display: flex;
  142. gap: 16px;
  143. align-items: center;
  144. justify-content: flex-end;
  145. }
  146. [data-slot="session-turn-accordion-content"] {
  147. max-height: 240px; /* max-h-60 */
  148. overflow-y: auto;
  149. scrollbar-width: none;
  150. }
  151. [data-slot="session-turn-accordion-content"]::-webkit-scrollbar {
  152. display: none;
  153. }
  154. [data-slot="session-turn-response-section"] {
  155. width: 100%;
  156. min-width: 0;
  157. }
  158. [data-slot="session-turn-collapsible-trigger-content"] {
  159. color: var(--text-weak);
  160. cursor: pointer;
  161. background: none;
  162. border: none;
  163. padding: 0;
  164. display: flex;
  165. align-items: center;
  166. &:hover {
  167. color: var(--text-strong);
  168. }
  169. display: flex;
  170. align-items: center;
  171. gap: 4px;
  172. align-self: stretch;
  173. }
  174. [data-slot="session-turn-details-text"] {
  175. font-size: 12px; /* text-12-medium */
  176. font-weight: 500;
  177. }
  178. .error-card {
  179. color: var(--text-on-critical-base);
  180. }
  181. [data-slot="session-turn-collapsible-content-inner"] {
  182. width: 100%;
  183. min-width: 0;
  184. display: flex;
  185. flex-direction: column;
  186. align-self: stretch;
  187. gap: 12px;
  188. }
  189. }