message-part.css 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  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="tool-error"] {
  29. display: flex;
  30. align-items: start;
  31. gap: 8px;
  32. [data-slot="icon-svg"] {
  33. color: var(--icon-critical-base);
  34. margin-top: 4px;
  35. }
  36. [data-slot="message-part-tool-error-content"] {
  37. display: flex;
  38. align-items: start;
  39. gap: 8px;
  40. }
  41. [data-slot="message-part-tool-error-title"] {
  42. font-family: var(--font-family-sans);
  43. font-size: var(--font-size-small);
  44. font-style: normal;
  45. font-weight: var(--font-weight-medium);
  46. line-height: var(--line-height-large);
  47. letter-spacing: var(--letter-spacing-normal);
  48. color: var(--text-on-critical-base);
  49. white-space: nowrap;
  50. }
  51. [data-slot="message-part-tool-error-message"] {
  52. color: var(--text-on-critical-weak);
  53. }
  54. }
  55. [data-component="tool-output"] {
  56. white-space: pre;
  57. padding: 8px 12px;
  58. height: fit-content;
  59. display: flex;
  60. flex-direction: column;
  61. align-items: flex-start;
  62. justify-content: flex-start;
  63. pre {
  64. margin: 0;
  65. padding: 0;
  66. }
  67. }
  68. [data-component="edit-trigger"],
  69. [data-component="write-trigger"] {
  70. display: flex;
  71. align-items: center;
  72. justify-content: space-between;
  73. width: 100%;
  74. [data-slot="message-part-title-area"] {
  75. display: flex;
  76. align-items: center;
  77. gap: 8px;
  78. }
  79. [data-slot="message-part-title"] {
  80. font-family: var(--font-family-sans);
  81. font-size: var(--font-size-small);
  82. font-style: normal;
  83. font-weight: var(--font-weight-medium);
  84. line-height: var(--line-height-large);
  85. letter-spacing: var(--letter-spacing-normal);
  86. color: var(--text-base);
  87. text-transform: capitalize;
  88. }
  89. [data-slot="message-part-path"] {
  90. display: flex;
  91. }
  92. [data-slot="message-part-directory"] {
  93. color: var(--text-weak);
  94. }
  95. [data-slot="message-part-filename"] {
  96. color: var(--text-strong);
  97. }
  98. [data-slot="message-part-actions"] {
  99. display: flex;
  100. gap: 16px;
  101. align-items: center;
  102. justify-content: flex-end;
  103. }
  104. }
  105. [data-component="edit-content"] {
  106. border-top: 1px solid var(--border-weaker-base);
  107. }
  108. [data-component="tool-action"] {
  109. width: 24px;
  110. height: 24px;
  111. display: flex;
  112. align-items: center;
  113. justify-content: center;
  114. }
  115. [data-component="todos"] {
  116. padding: 10px 12px 24px 48px;
  117. display: flex;
  118. flex-direction: column;
  119. gap: 8px;
  120. [data-slot="message-part-todo-content"] {
  121. &[data-completed="completed"] {
  122. text-decoration: line-through;
  123. color: var(--text-weaker);
  124. }
  125. }
  126. }