session-turn.css 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230
  1. [data-component="session-turn"] {
  2. --sticky-header-height: calc(var(--session-title-height, 0px) + 24px);
  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: 18px;
  27. overflow-anchor: none;
  28. }
  29. [data-slot="session-turn-message-content"] {
  30. margin-top: 0;
  31. width: 100%;
  32. min-width: 0;
  33. max-width: 100%;
  34. }
  35. [data-slot="session-turn-compaction"] {
  36. width: 100%;
  37. min-width: 0;
  38. align-self: stretch;
  39. }
  40. [data-slot="session-turn-thinking"] {
  41. display: flex;
  42. align-items: center;
  43. gap: 8px;
  44. width: 100%;
  45. min-width: 0;
  46. color: var(--text-weak);
  47. font-family: var(--font-family-sans);
  48. font-size: var(--font-size-base);
  49. font-weight: var(--font-weight-medium);
  50. line-height: 20px;
  51. min-height: 20px;
  52. [data-component="spinner"] {
  53. width: 16px;
  54. height: 16px;
  55. }
  56. }
  57. [data-component="text-reveal"].session-turn-thinking-heading {
  58. flex: 1 1 auto;
  59. min-width: 0;
  60. color: var(--text-weaker);
  61. font-weight: var(--font-weight-regular);
  62. }
  63. .error-card {
  64. color: var(--text-on-critical-base);
  65. max-height: 240px;
  66. white-space: pre-wrap;
  67. overflow-wrap: anywhere;
  68. word-break: break-word;
  69. overflow-y: auto;
  70. }
  71. [data-slot="session-turn-assistant-content"] {
  72. width: 100%;
  73. min-width: 0;
  74. display: flex;
  75. flex-direction: column;
  76. align-self: stretch;
  77. gap: 12px;
  78. }
  79. [data-slot="session-turn-diffs"] {
  80. width: 100%;
  81. min-width: 0;
  82. }
  83. [data-slot="session-turn-diffs-header"] {
  84. display: flex;
  85. align-items: center;
  86. gap: 8px;
  87. padding-top: 4px;
  88. padding-bottom: 12px;
  89. position: sticky;
  90. top: var(--sticky-accordion-top, 0px);
  91. z-index: 20;
  92. background-color: var(--background-stronger);
  93. height: 44px;
  94. }
  95. [data-slot="session-turn-diffs-label"] {
  96. font-variant-numeric: tabular-nums;
  97. color: var(--text-strong);
  98. font-family: var(--font-family-sans);
  99. font-size: var(--font-size-base);
  100. font-weight: var(--font-weight-medium);
  101. line-height: var(--line-height-large);
  102. }
  103. [data-slot="session-turn-diffs-toggle"] {
  104. color: var(--text-interactive-base);
  105. font-family: var(--font-family-sans);
  106. font-size: var(--font-size-base);
  107. font-weight: var(--font-weight-regular);
  108. line-height: var(--line-height-large);
  109. cursor: pointer;
  110. opacity: 0;
  111. transition: opacity 0.15s ease;
  112. margin-left: 4px;
  113. }
  114. [data-component="session-turn-diffs-group"]:hover [data-slot="session-turn-diffs-toggle"] {
  115. opacity: 1;
  116. }
  117. [data-component="session-turn-diffs-group"][data-show-all] [data-slot="session-turn-diffs-toggle"] {
  118. opacity: 1;
  119. }
  120. [data-slot="session-turn-diffs-more"] {
  121. color: var(--text-weak);
  122. font-family: var(--font-family-sans);
  123. font-size: var(--font-size-small);
  124. line-height: var(--line-height-large);
  125. margin-top: 12px;
  126. padding: 0 0 6px;
  127. cursor: pointer;
  128. transition: color 0.15s ease;
  129. &:hover {
  130. color: var(--text-link-base);
  131. }
  132. }
  133. [data-component="session-turn-diffs-content"] {
  134. padding-top: 0px;
  135. display: flex;
  136. flex-direction: column;
  137. }
  138. [data-slot="session-turn-diff-trigger"] {
  139. display: flex;
  140. align-items: center;
  141. justify-content: space-between;
  142. gap: 12px;
  143. width: 100%;
  144. min-width: 0;
  145. }
  146. [data-slot="session-turn-diff-path"] {
  147. display: flex;
  148. flex-grow: 1;
  149. min-width: 0;
  150. font-family: var(--font-family-sans);
  151. font-size: var(--font-size-small);
  152. line-height: var(--line-height-large);
  153. }
  154. [data-slot="session-turn-diff-directory"] {
  155. color: var(--text-base);
  156. overflow: hidden;
  157. text-overflow: ellipsis;
  158. white-space: nowrap;
  159. direction: rtl;
  160. text-align: left;
  161. }
  162. [data-slot="session-turn-diff-filename"] {
  163. min-width: 0;
  164. color: var(--text-strong);
  165. font-weight: var(--font-weight-medium);
  166. overflow: hidden;
  167. text-overflow: ellipsis;
  168. white-space: nowrap;
  169. }
  170. [data-slot="session-turn-diff-meta"] {
  171. flex-shrink: 0;
  172. display: inline-flex;
  173. align-items: center;
  174. gap: 10px;
  175. }
  176. [data-slot="session-turn-diff-chevron"] {
  177. display: inline-flex;
  178. color: var(--icon-weaker);
  179. transform: rotate(-90deg);
  180. transition: transform 0.15s ease;
  181. }
  182. [data-slot="accordion-item"][data-expanded] [data-slot="session-turn-diff-chevron"] {
  183. transform: rotate(0deg);
  184. }
  185. [data-slot="session-turn-diff-view"] {
  186. background-color: var(--surface-inset-base);
  187. width: 100%;
  188. min-width: 0;
  189. overflow-y: auto;
  190. overflow-x: hidden;
  191. scrollbar-width: none;
  192. -ms-overflow-style: none;
  193. }
  194. [data-slot="session-turn-diff-view"]::-webkit-scrollbar {
  195. display: none;
  196. }
  197. }
  198. [data-slot="session-turn-list"] {
  199. gap: 48px;
  200. }