summaryrefslogtreecommitdiffhomepage
path: root/packages/ui/src/components/session-turn.css
blob: 54076f3f893950021aed188e4ed285ef80f830ed (plain)
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
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
[data-component="session-turn"] {
  --sticky-header-height: calc(var(--session-title-height, 0px) + 24px);
  height: 100%;
  min-height: 0;
  min-width: 0;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;

  [data-slot="session-turn-content"] {
    flex-grow: 1;
    width: 100%;
    height: 100%;
    min-width: 0;
    overflow-y: auto;
    scrollbar-width: none;
  }

  [data-slot="session-turn-content"]::-webkit-scrollbar {
    display: none;
  }

  [data-slot="session-turn-message-container"] {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    align-self: stretch;
    min-width: 0;
    gap: 0px;
    overflow-anchor: none;
  }

  [data-slot="session-turn-message-content"] {
    margin-top: 0;
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  [data-slot="session-turn-compaction"] {
    width: 100%;
    min-width: 0;
    align-self: stretch;
  }

  [data-slot="session-turn-thinking"] {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    width: 100%;
    min-width: 0;
    color: var(--text-weak);
    font-family: var(--font-family-sans);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
    line-height: 20px;
    min-height: 20px;

    [data-component="spinner"] {
      width: 16px;
      height: 16px;
    }
  }

  [data-component="text-reveal"].session-turn-thinking-heading {
    flex: 1 1 auto;
    min-width: 0;
    color: var(--text-weaker);
    font-weight: var(--font-weight-regular);
  }

  .error-card {
    color: var(--text-on-critical-base);
    max-height: 240px;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
    overflow-y: auto;
  }

  [data-slot="session-turn-assistant-content"] {
    width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-self: stretch;
    gap: 12px;
  }

  [data-slot="session-turn-diffs"] {
    width: 100%;
    min-width: 0;
  }

  [data-slot="session-turn-diffs-header"] {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 4px;
    padding-bottom: 12px;
    position: sticky;
    top: var(--sticky-accordion-top, 0px);
    z-index: 20;
    background-color: var(--background-stronger);
    height: 44px;
  }

  [data-slot="session-turn-diffs-label"] {
    font-variant-numeric: tabular-nums;
    color: var(--text-strong);
    font-family: var(--font-family-sans);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
    line-height: var(--line-height-large);
  }

  [data-slot="session-turn-diffs-toggle"] {
    color: var(--text-interactive-base);
    font-family: var(--font-family-sans);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-regular);
    line-height: var(--line-height-large);
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.15s ease;
    margin-left: 4px;
  }

  [data-component="session-turn-diffs-group"]:hover [data-slot="session-turn-diffs-toggle"] {
    opacity: 1;
  }

  [data-component="session-turn-diffs-group"][data-show-all] [data-slot="session-turn-diffs-toggle"] {
    opacity: 1;
  }

  [data-slot="session-turn-diffs-more"] {
    color: var(--text-weak);
    font-family: var(--font-family-sans);
    font-size: var(--font-size-small);
    line-height: var(--line-height-large);
    margin-top: 12px;
    padding: 0 0 6px;
    cursor: pointer;
    transition: color 0.15s ease;

    &:hover {
      color: var(--text-link-base);
    }
  }

  [data-component="session-turn-diffs-content"] {
    padding-top: 0px;
    display: flex;
    flex-direction: column;
  }

  [data-slot="session-turn-diff-trigger"] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-width: 0;
  }

  [data-slot="session-turn-diff-path"] {
    display: flex;
    flex-grow: 1;
    min-width: 0;

    font-family: var(--font-family-sans);
    font-size: var(--font-size-small);
    line-height: var(--line-height-large);
  }

  [data-slot="session-turn-diff-directory"] {
    color: var(--text-base);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    direction: rtl;
    text-align: left;
  }

  [data-slot="session-turn-diff-filename"] {
    min-width: 0;
    color: var(--text-strong);
    font-weight: var(--font-weight-medium);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  [data-slot="session-turn-diff-meta"] {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 10px;
  }

  [data-slot="session-turn-diff-chevron"] {
    display: inline-flex;
    color: var(--icon-weaker);
    transform: rotate(-90deg);
    transition: transform 0.15s ease;
  }

  [data-slot="accordion-item"][data-expanded] [data-slot="session-turn-diff-chevron"] {
    transform: rotate(0deg);
  }

  [data-slot="session-turn-diff-view"] {
    background-color: var(--surface-inset-base);
    width: 100%;
    min-width: 0;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  [data-slot="session-turn-diff-view"]::-webkit-scrollbar {
    display: none;
  }
}

[data-slot="session-turn-list"] {
  gap: 24px;
}