|
1 | 1 | .container {
|
| 2 | + position: relative; |
| 3 | + |
| 4 | + overflow: hidden; |
2 | 5 | display: flex;
|
3 | 6 | flex-direction: column;
|
4 |
| - height: 100vh; |
| 7 | + |
5 | 8 | width: 100%;
|
6 |
| - background-color: var(--colorNeutralBackground1); |
| 9 | + max-width: 100%; |
| 10 | + height: 100vh; |
7 | 11 | }
|
8 | 12 |
|
9 | 13 | .topBar {
|
10 | 14 | display: flex;
|
| 15 | + flex-shrink: 0; |
| 16 | + align-items: center; |
11 | 17 | justify-content: space-between;
|
| 18 | + |
| 19 | + box-sizing: border-box; |
| 20 | + width: 100%; |
| 21 | + max-width: 100%; |
| 22 | + padding: 16px 24px; |
| 23 | +} |
| 24 | + |
| 25 | +.leftSection { |
| 26 | + overflow: hidden; |
| 27 | + display: flex; |
| 28 | + flex: 1; |
| 29 | + gap: 16px; |
12 | 30 | align-items: center;
|
13 |
| - padding: 8px 16px; |
14 |
| - border-bottom: 1px solid var(--colorNeutralStroke1); |
15 |
| - background-color: var(--colorNeutralBackground2); |
| 31 | + |
| 32 | + min-width: 0; |
16 | 33 | }
|
17 | 34 |
|
18 |
| -.leftSection, .rightSection { |
| 35 | +.rightSection { |
19 | 36 | display: flex;
|
| 37 | + flex-shrink: 0; |
| 38 | + gap: 8px; |
20 | 39 | align-items: center;
|
| 40 | +} |
| 41 | + |
| 42 | +.agentIconContainer { |
| 43 | + display: flex; |
21 | 44 | gap: 8px;
|
| 45 | + align-items: center; |
22 | 46 | }
|
23 | 47 |
|
24 | 48 | .agentIcon {
|
25 |
| - width: 24px; |
26 |
| - height: 24px; |
27 |
| - border-radius: 4px; |
| 49 | + flex-shrink: 0; |
| 50 | + width: 32px; |
| 51 | + height: 32px; |
28 | 52 | }
|
29 | 53 |
|
30 |
| -.emptyStateAgentIcon { |
31 |
| - width: 64px; |
32 |
| - height: 64px; |
33 |
| - border-radius: 8px; |
| 54 | +.agentIcon.newAgent { |
| 55 | + background-color: var(--colorNeutralForegroundDisabled); |
| 56 | + border-radius: 50%; |
34 | 57 | }
|
35 | 58 |
|
36 | 59 | .agentName {
|
| 60 | + overflow: hidden; |
37 | 61 | font-weight: 600;
|
| 62 | + text-overflow: ellipsis; |
| 63 | + white-space: nowrap; |
| 64 | +} |
| 65 | + |
| 66 | +.agentName.newAgent { |
| 67 | + color: var(--colorNeutralForegroundDisabled); |
38 | 68 | }
|
39 | 69 |
|
40 | 70 | .content {
|
| 71 | + position: relative; |
| 72 | + |
| 73 | + overflow: hidden; |
| 74 | + display: grid; |
| 75 | + grid-template-columns: 1fr minmax(min(500px, 100%), 50%) 1fr; |
| 76 | + flex-direction: column; |
| 77 | + align-items: center; |
| 78 | + justify-content: center; |
| 79 | + |
| 80 | + box-sizing: border-box; |
| 81 | + width: 100%; |
| 82 | + height: 100%; |
| 83 | + padding-bottom: 12px; |
| 84 | +} |
| 85 | + |
| 86 | +.builtWithBadge { |
| 87 | + position: absolute; |
| 88 | + bottom: 24px; |
| 89 | + left: 24px; |
| 90 | + z-index: 10; |
| 91 | + |
| 92 | + /* No design yet for how to handle the badge on smaller screens, hide it for now */ |
| 93 | + @media (width <= 768px) { |
| 94 | + display: none; |
| 95 | + } |
| 96 | +} |
| 97 | + |
| 98 | +.chatbot { |
| 99 | + overflow: hidden; |
41 | 100 | display: flex;
|
| 101 | + grid-column: 2; |
42 | 102 | flex: 1;
|
43 | 103 | flex-direction: column;
|
| 104 | +} |
| 105 | + |
| 106 | +.chatbot:not(:has(.emptyChatContainer)) { |
| 107 | + height: 100%; |
| 108 | +} |
| 109 | + |
| 110 | +.emptyChatContainer { |
| 111 | + display: flex; |
| 112 | + flex-direction: column; |
44 | 113 | align-items: center;
|
45 |
| - justify-content: center; |
| 114 | +} |
| 115 | + |
| 116 | +.wavesContainer { |
| 117 | + pointer-events: none; |
| 118 | + |
| 119 | + position: absolute; |
| 120 | + z-index: 0; |
| 121 | + bottom: 0; |
| 122 | + left: 0; |
| 123 | + |
46 | 124 | overflow: hidden;
|
47 | 125 |
|
48 |
| - box-sizing: border-box; |
49 |
| - width: 50%; |
50 |
| - margin: 5px auto; |
| 126 | + width: 100%; |
| 127 | + height: 300px; |
| 128 | + max-height: 100%; |
| 129 | + |
| 130 | + animation: waves-fade-in 1s ease-in-out; |
| 131 | +} |
| 132 | + |
| 133 | +.wavesContainer > canvas { |
| 134 | + width: 100%; |
| 135 | + height: 100%; |
| 136 | +} |
| 137 | + |
| 138 | +@keyframes waves-fade-in { |
| 139 | + from { |
| 140 | + opacity: 0; |
| 141 | + } |
| 142 | + |
| 143 | + to { |
| 144 | + opacity: 1; |
| 145 | + } |
| 146 | +} |
| 147 | + |
| 148 | +/* Legacy styles kept for compatibility */ |
| 149 | +.emptyStateAgentIcon { |
| 150 | + width: 64px; |
| 151 | + height: 64px; |
| 152 | + border-radius: 8px; |
| 153 | + margin-bottom: 16px; |
| 154 | +} |
| 155 | + |
| 156 | +.content > .agentName { |
| 157 | + margin-bottom: 8px; |
| 158 | +} |
| 159 | + |
| 160 | +.menuButtonContainer { |
| 161 | + position: relative; |
| 162 | + display: inline-block; |
| 163 | +} |
| 164 | + |
| 165 | +.menuButton { |
| 166 | + position: relative; |
| 167 | +} |
| 168 | + |
| 169 | +.menu { |
| 170 | + position: absolute; |
| 171 | + top: 100%; |
| 172 | + right: 0; |
| 173 | + background-color: var(--colorNeutralBackground1); |
| 174 | + border: 1px solid var(--colorNeutralStroke1); |
| 175 | + border-radius: 4px; |
| 176 | + box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); |
| 177 | + z-index: 1000; |
| 178 | + min-width: 200px; |
| 179 | + display: none; |
| 180 | +} |
| 181 | + |
| 182 | +.menuButtonContainer:hover .menu, |
| 183 | +.menuButton:focus-within .menu { |
| 184 | + display: block; |
| 185 | +} |
| 186 | + |
| 187 | +.menuItem { |
| 188 | + display: flex; |
| 189 | + align-items: center; |
| 190 | + padding: 8px 16px; |
| 191 | + cursor: pointer; |
| 192 | + gap: 8px; |
| 193 | +} |
| 194 | + |
| 195 | +.menuItem:hover { |
| 196 | + background-color: var(--colorNeutralBackground2); |
| 197 | +} |
| 198 | + |
| 199 | +.externalLink { |
| 200 | + text-decoration: none; |
| 201 | + color: inherit; |
| 202 | + display: flex; |
| 203 | + align-items: center; |
| 204 | + width: 100%; |
51 | 205 | }
|
52 | 206 |
|
53 | 207 | .menuButtonContainer {
|
|
0 commit comments