tool-error-card-v2.css 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200
  1. [data-component="tool-error-card"] {
  2. --tec-border: var(--state-fg-danger);
  3. --tec-title: var(--text-text-base);
  4. --tec-sep: var(--text-text-muted);
  5. --tec-subtitle: var(--text-text-muted);
  6. --tec-suffix: var(--text-text-faint);
  7. --tec-chevron: var(--text-text-faint);
  8. --tec-icon: var(--icon-icon-base);
  9. box-sizing: border-box;
  10. display: flex;
  11. flex-direction: column;
  12. align-items: stretch;
  13. min-width: 0;
  14. width: 100%;
  15. padding: 0 0 0 10px;
  16. gap: 8px;
  17. border-left: 2px solid var(--tec-border);
  18. font-variant-numeric: tabular-nums;
  19. [data-slot="tool-error-card-trigger"] {
  20. box-sizing: border-box;
  21. display: flex;
  22. flex-direction: row;
  23. align-items: center;
  24. gap: 8px;
  25. width: 100%;
  26. min-width: 0;
  27. min-height: 24px;
  28. padding: 2px 0;
  29. margin: 0;
  30. text-align: left;
  31. color: inherit;
  32. outline: none;
  33. border-radius: 2px;
  34. }
  35. [data-slot="tool-error-card-trigger"]:focus-visible {
  36. outline: 2px solid var(--border-border-focus);
  37. outline-offset: 2px;
  38. }
  39. [data-slot="tool-error-card-icon-wrap"] {
  40. display: flex;
  41. flex-direction: row;
  42. align-items: center;
  43. justify-content: center;
  44. flex-shrink: 0;
  45. width: 16px;
  46. height: 20px;
  47. box-sizing: border-box;
  48. color: var(--tec-icon);
  49. }
  50. [data-slot="tool-error-card-ban"] {
  51. display: block;
  52. flex-shrink: 0;
  53. }
  54. [data-slot="tool-error-card-loader"] {
  55. display: block;
  56. flex-shrink: 0;
  57. width: 16px;
  58. height: 16px;
  59. animation: tool-error-card-spin 0.65s linear infinite;
  60. transform-origin: 50% 50%;
  61. }
  62. [data-slot="tool-error-card-main"] {
  63. display: flex;
  64. flex-direction: row;
  65. align-items: center;
  66. justify-content: flex-start;
  67. min-width: 0;
  68. min-height: 20px;
  69. flex: 1 1 auto;
  70. }
  71. [data-slot="tool-error-card-labels"] {
  72. display: inline-flex;
  73. flex-direction: row;
  74. align-items: center;
  75. gap: 6px;
  76. max-width: 100%;
  77. min-width: 0;
  78. overflow: hidden;
  79. }
  80. [data-slot="tool-error-card-title"] {
  81. display: flex;
  82. align-items: center;
  83. flex-shrink: 0;
  84. max-width: 100%;
  85. height: 20px;
  86. font-size: 13px;
  87. font-weight: 530;
  88. line-height: 20px;
  89. letter-spacing: -0.04px;
  90. color: var(--tec-title);
  91. user-select: none;
  92. }
  93. [data-slot="tool-error-card-sep"] {
  94. display: flex;
  95. align-items: center;
  96. justify-content: center;
  97. flex-shrink: 0;
  98. height: 20px;
  99. font-size: 11px;
  100. font-weight: 530;
  101. line-height: 20px;
  102. letter-spacing: 0.05px;
  103. color: var(--tec-sep);
  104. user-select: none;
  105. }
  106. [data-slot="tool-error-card-subtitle"] {
  107. display: flex;
  108. align-items: center;
  109. min-width: 0;
  110. height: 20px;
  111. flex: 0 1 auto;
  112. flex-shrink: 1;
  113. overflow: hidden;
  114. text-overflow: ellipsis;
  115. white-space: nowrap;
  116. font-size: 13px;
  117. font-weight: 440;
  118. line-height: 20px;
  119. letter-spacing: -0.04px;
  120. color: var(--tec-subtitle);
  121. user-select: none;
  122. }
  123. a[data-slot="tool-error-card-subtitle"] {
  124. display: flex;
  125. align-items: center;
  126. min-width: 0;
  127. height: 20px;
  128. flex: 0 1 auto;
  129. flex-shrink: 1;
  130. overflow: hidden;
  131. text-overflow: ellipsis;
  132. white-space: nowrap;
  133. font-size: 13px;
  134. font-weight: 440;
  135. line-height: 20px;
  136. letter-spacing: -0.04px;
  137. color: inherit;
  138. text-decoration: underline;
  139. text-underline-offset: 2px;
  140. user-select: none;
  141. }
  142. [data-slot="tool-error-card-chevron-wrap"] {
  143. display: flex;
  144. align-items: center;
  145. justify-content: center;
  146. flex-shrink: 0;
  147. width: 14px;
  148. height: 20px;
  149. color: var(--tec-chevron);
  150. user-select: none;
  151. }
  152. [data-slot="tool-error-card-chevron"] {
  153. display: block;
  154. flex-shrink: 0;
  155. width: 14px;
  156. height: 14px;
  157. color: var(--tec-chevron);
  158. transition: transform 0.15s ease-out;
  159. }
  160. &[data-expanded] [data-slot="tool-error-card-chevron"] {
  161. transform: rotate(90deg);
  162. }
  163. [data-slot="tool-error-card-content"] {
  164. box-sizing: border-box;
  165. min-width: 0;
  166. }
  167. [data-slot="tool-error-card-suffix"] {
  168. padding: 0 0 0 24px;
  169. font-size: 13px;
  170. font-weight: 440;
  171. line-height: 1;
  172. letter-spacing: -0.04px;
  173. color: var(--tec-suffix);
  174. white-space: pre-wrap;
  175. word-break: break-word;
  176. }
  177. }
  178. @keyframes tool-error-card-spin {
  179. to {
  180. transform: rotate(360deg);
  181. }
  182. }