|
2 | 2 | .sidebar__section-container {
|
3 | 3 | transition: all 0.3s ease;
|
4 | 4 | overflow: auto;
|
5 |
| - max-height: 85vh; |
6 |
| -} |
7 |
| - |
8 |
| -.sidebar__section-container.is-opening { |
9 |
| - max-height: 70vh; |
| 5 | + flex-grow: 1; |
10 | 6 | }
|
11 | 7 |
|
12 | 8 | .sidebar__section-container:not(.active) {
|
|
15 | 11 | }
|
16 | 12 |
|
17 | 13 | /* ------------- Chat UI ------------- */
|
| 14 | +.sidebar__chat-assistant-body { |
| 15 | + display: flex; |
| 16 | + flex-direction: column; |
| 17 | + height: 100%; |
| 18 | +} |
| 19 | + |
18 | 20 | .sidebar__chat-assistant--dialogue-container {
|
19 | 21 | padding: 0 var(--spacing-md);
|
20 | 22 | margin: 0;
|
|
23 | 25 | }
|
24 | 26 |
|
25 | 27 | .sidebar__chat-assistant--chat-bubble {
|
26 |
| - display: inline-grid; |
| 28 | + display: flex; |
| 29 | + overflow: hidden; |
| 30 | + width: 100%; |
| 31 | + gap: var(--spacing-md); |
27 | 32 | align-items: flex-end;
|
28 | 33 | grid-gap: var(--spacing-md) var(--spacing-xs);
|
29 | 34 | margin-bottom: var(--spacing-md);
|
|
33 | 38 | /* Change width of columns based on agent/user */
|
34 | 39 | .sidebar__chat-assistant--chat-bubble-agent {
|
35 | 40 | grid-template-columns: 32px 1fr;
|
| 41 | + flex-direction: row; |
36 | 42 | }
|
37 | 43 |
|
38 | 44 | .sidebar__chat-assistant--chat-bubble-user {
|
39 | 45 | grid-template-columns: 1fr 32px;
|
| 46 | + flex-direction: row-reverse; |
40 | 47 | }
|
41 | 48 |
|
42 | 49 | /* Styles for avatars */
|
43 | 50 | .sidebar__chat-assistant--chat-avatar-container {
|
| 51 | + flex-shrink: 0; |
| 52 | + flex-grow: 0; |
44 | 53 | background: var(--vscode-foreground);
|
45 | 54 | padding: var(--spacing-xs);
|
46 | 55 | border-radius: 100%;
|
|
49 | 58 | display: flex;
|
50 | 59 | align-items: center;
|
51 | 60 | justify-content: center;
|
52 |
| - flex: auto; |
53 | 61 | }
|
54 | 62 |
|
55 | 63 | .sidebar__chat-assistant--agent-avatar-image {
|
|
63 | 71 | background-color: var(--vscode-settings-textInputBackground);
|
64 | 72 | padding: var(--spacing-xs);
|
65 | 73 | border-radius: var(--spacing-xs);
|
| 74 | + flex-grow: 1; |
| 75 | + flex-shrink: 1; |
| 76 | + overflow: hidden; |
66 | 77 | }
|
67 | 78 |
|
68 | 79 | .sidebar__chat-assistant--chat-bubble-content-user {
|
|
100 | 111 | background-color: var(--vscode-editor-background);
|
101 | 112 | margin: 0;
|
102 | 113 | border-radius: var(--spacing-xs);
|
| 114 | + overflow-x: auto; |
| 115 | + width: 100%; |
103 | 116 | }
|
104 | 117 |
|
105 | 118 | .sidebar__chat-assistant--code-block {
|
|
221 | 234 | border-bottom: 1px solid var(--vscode-sideBar-border);
|
222 | 235 | padding: var(--spacing-md);
|
223 | 236 | background-color: var(--vscode-sideBar-background);
|
224 |
| - position: absolute; |
225 |
| - bottom: -1px; |
226 |
| - width: 100%; |
| 237 | + flex-shrink: 0; |
| 238 | + flex-grow: 0; |
227 | 239 | }
|
228 | 240 |
|
229 | 241 | .sidebar__chat-assistant--textarea-container {
|
|
0 commit comments