Commit d8e3bd7
committed
fix(chatbot): disambiguate panel focus check and avoid color-mix on canvas (#325)
Address the fifth Copilot review:
- isViewingChat keyed on `.filigran-chatbot`, which the toggle button also
carries, so focusing the toggle was mistaken for viewing the chat and
suppressed the completion notice. Key on `.filigran-chatbot.fixed` instead -
the panel root carries both classes in every mode, the toggle button does not.
- The waiting game set the canvas fillStyle to a color-mix() string, which is
not reliably accepted as a canvas colour (some browsers fall back to opaque
black). Use a single solid accent fillStyle and vary opacity via globalAlpha.1 parent 394eb3a commit d8e3bd7
2 files changed
Lines changed: 13 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
184 | 184 | | |
185 | 185 | | |
186 | 186 | | |
187 | | - | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
188 | 191 | | |
189 | 192 | | |
190 | 193 | | |
| |||
Lines changed: 9 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
232 | 232 | | |
233 | 233 | | |
234 | 234 | | |
235 | | - | |
236 | | - | |
237 | | - | |
238 | | - | |
239 | 235 | | |
240 | 236 | | |
241 | 237 | | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
242 | 243 | | |
243 | 244 | | |
244 | | - | |
| 245 | + | |
245 | 246 | | |
246 | 247 | | |
247 | 248 | | |
248 | 249 | | |
249 | | - | |
| 250 | + | |
250 | 251 | | |
251 | 252 | | |
252 | 253 | | |
253 | 254 | | |
254 | 255 | | |
255 | | - | |
| 256 | + | |
256 | 257 | | |
257 | 258 | | |
258 | 259 | | |
| 260 | + | |
259 | 261 | | |
260 | 262 | | |
261 | | - | |
262 | 263 | | |
263 | 264 | | |
264 | 265 | | |
| |||
0 commit comments