Commit 2bc3876
committed
fix(frontend): stop role-alignment inset stacking with comparison cell padding
The comparison view renders messages with their own editor padding (!p-3
cells). The role-alignment inset added by ChatMessageEditor stacked on top of
that, over-padding the message text, and the assistant output cell also
double-padded (the [&_.agenta-editor-wrapper]:!p-3 hack plus editorClassName).
Add an alignTextWithRole prop (default true) to ChatMessageEditor; the
comparison view passes false so the inset and role pin are skipped there.
Remove the leftover wrapper-padding hack so the comparison cells pad the editor
once, via editorClassName.1 parent 28c478f commit 2bc3876
2 files changed
Lines changed: 29 additions & 10 deletions
File tree
- web/packages
- agenta-playground-ui/src/components/ExecutionItemComparisonView/GenerationComparisonChatOutput
- agenta-ui/src/ChatMessage/components
Lines changed: 13 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
151 | 151 | | |
152 | 152 | | |
153 | 153 | | |
154 | | - | |
155 | | - | |
156 | | - | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
157 | 157 | | |
| 158 | + | |
| 159 | + | |
158 | 160 | | |
| 161 | + | |
159 | 162 | | |
160 | 163 | | |
161 | 164 | | |
| |||
201 | 204 | | |
202 | 205 | | |
203 | 206 | | |
204 | | - | |
205 | | - | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
206 | 213 | | |
| 214 | + | |
207 | 215 | | |
208 | 216 | | |
209 | 217 | | |
| |||
Lines changed: 16 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
74 | 74 | | |
75 | 75 | | |
76 | 76 | | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
77 | 85 | | |
78 | 86 | | |
79 | 87 | | |
| |||
134 | 142 | | |
135 | 143 | | |
136 | 144 | | |
| 145 | + | |
137 | 146 | | |
138 | 147 | | |
139 | 148 | | |
| |||
215 | 224 | | |
216 | 225 | | |
217 | 226 | | |
218 | | - | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
219 | 230 | | |
220 | | - | |
| 231 | + | |
| 232 | + | |
221 | 233 | | |
222 | 234 | | |
223 | 235 | | |
224 | 236 | | |
225 | 237 | | |
226 | | - | |
227 | | - | |
228 | 238 | | |
229 | | - | |
| 239 | + | |
| 240 | + | |
230 | 241 | | |
231 | 242 | | |
232 | 243 | | |
| |||
0 commit comments