File size: 4,384 Bytes
3e05655
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
[data-component="tool-error-card"] {
  --tec-border: var(--v2-state-fg-danger);
  --tec-title: var(--v2-text-text-base);
  --tec-sep: var(--v2-text-text-muted);
  --tec-subtitle: var(--v2-text-text-muted);
  --tec-suffix: var(--v2-text-text-faint);
  --tec-chevron: var(--v2-text-text-faint);
  --tec-icon: var(--v2-icon-icon-base);

  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
  width: 100%;
  padding: 0 0 0 10px;
  gap: 8px;
  border-left: 2px solid var(--tec-border);
  font-variant-numeric: tabular-nums;

  [data-slot="tool-error-card-trigger"] {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-width: 0;
    min-height: 24px;
    padding: 2px 0;
    margin: 0;
    text-align: left;
    color: inherit;
    outline: none;
    border-radius: 2px;
  }

  [data-slot="tool-error-card-trigger"]:focus-visible {
    outline: 2px solid var(--v2-border-border-focus);
    outline-offset: 2px;
  }

  [data-slot="tool-error-card-icon-wrap"] {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 16px;
    height: 20px;
    box-sizing: border-box;
    color: var(--tec-icon);
  }

  [data-slot="tool-error-card-ban"] {
    display: block;
    flex-shrink: 0;
  }

  [data-slot="tool-error-card-loader"] {
    display: block;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    animation: tool-error-card-spin 0.65s linear infinite;
    transform-origin: 50% 50%;
  }

  [data-slot="tool-error-card-main"] {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    min-width: 0;
    min-height: 20px;
    flex: 1 1 auto;
  }

  [data-slot="tool-error-card-labels"] {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
  }

  [data-slot="tool-error-card-title"] {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    max-width: 100%;
    height: 20px;
    font-size: 13px;
    font-weight: 530;
    line-height: 20px;
    letter-spacing: -0.04px;
    color: var(--tec-title);
    user-select: none;
  }

  [data-slot="tool-error-card-sep"] {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    height: 20px;
    font-size: 11px;
    font-weight: 530;
    line-height: 20px;
    letter-spacing: 0.05px;
    color: var(--tec-sep);
    user-select: none;
  }

  [data-slot="tool-error-card-subtitle"] {
    display: flex;
    align-items: center;
    min-width: 0;
    height: 20px;
    flex: 0 1 auto;
    flex-shrink: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 440;
    line-height: 20px;
    letter-spacing: -0.04px;
    color: var(--tec-subtitle);
    user-select: none;
  }

  a[data-slot="tool-error-card-subtitle"] {
    display: flex;
    align-items: center;
    min-width: 0;
    height: 20px;
    flex: 0 1 auto;
    flex-shrink: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 440;
    line-height: 20px;
    letter-spacing: -0.04px;
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
    user-select: none;
  }

  [data-slot="tool-error-card-chevron-wrap"] {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 14px;
    height: 20px;
    color: var(--tec-chevron);
    user-select: none;
  }

  [data-slot="tool-error-card-chevron"] {
    display: block;
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    color: var(--tec-chevron);
    transition: transform 0.15s ease-out;
  }

  &[data-expanded] [data-slot="tool-error-card-chevron"] {
    transform: rotate(90deg);
  }

  [data-slot="tool-error-card-content"] {
    box-sizing: border-box;
    min-width: 0;
  }

  [data-slot="tool-error-card-suffix"] {
    padding: 0 0 0 24px;
    font-size: 13px;
    font-weight: 440;
    line-height: 1;
    letter-spacing: -0.04px;
    color: var(--tec-suffix);
    white-space: pre-wrap;
    word-break: break-word;
  }
}

@keyframes tool-error-card-spin {
  to {
    transform: rotate(360deg);
  }
}