message-part.css 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. [data-component="assistant-message"] {
  2. width: 100%;
  3. display: flex;
  4. flex-direction: column;
  5. align-items: flex-start;
  6. gap: 12px;
  7. }
  8. [data-component="user-message"] {
  9. font-family: var(--font-family-sans);
  10. font-size: var(--font-size-small);
  11. font-style: normal;
  12. font-weight: var(--font-weight-regular);
  13. line-height: var(--line-height-large);
  14. letter-spacing: var(--letter-spacing-normal);
  15. color: var(--text-base);
  16. display: -webkit-box;
  17. line-clamp: 3;
  18. -webkit-line-clamp: 3;
  19. -webkit-box-orient: vertical;
  20. overflow: hidden;
  21. }
  22. [data-component="text-part"] {
  23. width: 100%;
  24. [data-component="markdown"] {
  25. margin-top: 32px;
  26. }
  27. }
  28. [data-component="reasoning-part"] {
  29. width: 100%;
  30. opacity: 0.5;
  31. [data-component="markdown"] {
  32. margin-top: 24px;
  33. font-style: italic !important;
  34. }
  35. }
  36. [data-component="tool-error"] {
  37. display: flex;
  38. align-items: start;
  39. gap: 8px;
  40. [data-slot="icon-svg"] {
  41. color: var(--icon-critical-base);
  42. margin-top: 4px;
  43. }
  44. [data-slot="message-part-tool-error-content"] {
  45. display: flex;
  46. align-items: start;
  47. gap: 8px;
  48. }
  49. [data-slot="message-part-tool-error-title"] {
  50. font-family: var(--font-family-sans);
  51. font-size: var(--font-size-small);
  52. font-style: normal;
  53. font-weight: var(--font-weight-medium);
  54. line-height: var(--line-height-large);
  55. letter-spacing: var(--letter-spacing-normal);
  56. color: var(--text-on-critical-base);
  57. white-space: nowrap;
  58. }
  59. [data-slot="message-part-tool-error-message"] {
  60. color: var(--text-on-critical-weak);
  61. }
  62. }
  63. [data-component="tool-output"] {
  64. white-space: pre;
  65. padding: 8px 12px;
  66. height: fit-content;
  67. display: flex;
  68. flex-direction: column;
  69. align-items: flex-start;
  70. justify-content: flex-start;
  71. pre {
  72. margin: 0;
  73. padding: 0;
  74. }
  75. }
  76. [data-component="edit-trigger"],
  77. [data-component="write-trigger"] {
  78. display: flex;
  79. align-items: center;
  80. justify-content: space-between;
  81. width: 100%;
  82. [data-slot="message-part-title-area"] {
  83. display: flex;
  84. align-items: center;
  85. gap: 8px;
  86. }
  87. [data-slot="message-part-title"] {
  88. font-family: var(--font-family-sans);
  89. font-size: var(--font-size-small);
  90. font-style: normal;
  91. font-weight: var(--font-weight-medium);
  92. line-height: var(--line-height-large);
  93. letter-spacing: var(--letter-spacing-normal);
  94. color: var(--text-base);
  95. text-transform: capitalize;
  96. }
  97. [data-slot="message-part-path"] {
  98. display: flex;
  99. }
  100. [data-slot="message-part-directory"] {
  101. color: var(--text-weak);
  102. }
  103. [data-slot="message-part-filename"] {
  104. color: var(--text-strong);
  105. }
  106. [data-slot="message-part-actions"] {
  107. display: flex;
  108. gap: 16px;
  109. align-items: center;
  110. justify-content: flex-end;
  111. }
  112. }
  113. [data-component="edit-content"] {
  114. border-top: 1px solid var(--border-weaker-base);
  115. }
  116. [data-component="tool-action"] {
  117. width: 24px;
  118. height: 24px;
  119. display: flex;
  120. align-items: center;
  121. justify-content: center;
  122. }
  123. [data-component="todos"] {
  124. padding: 10px 12px 24px 48px;
  125. display: flex;
  126. flex-direction: column;
  127. gap: 8px;
  128. [data-slot="message-part-todo-content"] {
  129. &[data-completed="completed"] {
  130. text-decoration: line-through;
  131. color: var(--text-weaker);
  132. }
  133. }
  134. }