Commit 0ad4172
committed
Make Ida chat a floating, minimizable/expandable popup + mobile nav
The chat was a full-height side panel that ate half the screen on mobile
and cropped the page. Replace it with a floating chat widget:
- Three states (min / open / max): a launcher bubble that opens a docked
popup, which can be expanded to full-screen or minimized back to the
bubble. Header gains expand (⤢) and minimize (—) controls.
- The page content now uses the full width (chat floats instead of taking
a grid column). On phones the popup docks to the bottom, leaving the page
usable above it; on desktop it anchors bottom-right.
- Starts minimized on small screens so it never covers content.
- Add a mobile hamburger + slide-in sidebar drawer (with scrim) so rooms
are navigable on phones; the drawer auto-closes after picking a room.
Fix: the app-state class `ida-open` collided with the launcher's `.ida-open`
class (display:none), which hid the entire app when opening the chat. The
launcher is now `.ida-fab`.
Verified across mobile (412px) and desktop (1440px): min/open/max
transitions, hamburger drawer open + navigate + auto-close. Smoke test green.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RGCVknsd94sAJS6rhDdTBQ1 parent cb56247 commit 0ad4172
3 files changed
Lines changed: 106 additions & 25 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| |||
284 | 284 | | |
285 | 285 | | |
286 | 286 | | |
287 | | - | |
| 287 | + | |
288 | 288 | | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
289 | 295 | | |
290 | | - | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
291 | 299 | | |
292 | 300 | | |
293 | | - | |
| 301 | + | |
| 302 | + | |
294 | 303 | | |
295 | | - | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
296 | 315 | | |
297 | 316 | | |
298 | 317 | | |
| |||
331 | 350 | | |
332 | 351 | | |
333 | 352 | | |
334 | | - | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
335 | 363 | | |
336 | 364 | | |
337 | 365 | | |
338 | | - | |
339 | | - | |
340 | | - | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
341 | 375 | | |
342 | 376 | | |
343 | 377 | | |
344 | 378 | | |
345 | | - | |
346 | | - | |
347 | 379 | | |
348 | 380 | | |
349 | | - | |
| 381 | + | |
350 | 382 | | |
351 | | - | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
352 | 389 | | |
353 | | - | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
354 | 400 | | |
355 | 401 | | |
356 | 402 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
21 | 24 | | |
22 | | - | |
| 25 | + | |
23 | 26 | | |
24 | 27 | | |
25 | 28 | | |
| |||
52 | 55 | | |
53 | 56 | | |
54 | 57 | | |
55 | | - | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
56 | 62 | | |
57 | 63 | | |
58 | 64 | | |
| |||
67 | 73 | | |
68 | 74 | | |
69 | 75 | | |
70 | | - | |
| 76 | + | |
71 | 77 | | |
72 | 78 | | |
73 | 79 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
79 | | - | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
80 | 89 | | |
81 | 90 | | |
82 | 91 | | |
| |||
91 | 100 | | |
92 | 101 | | |
93 | 102 | | |
94 | | - | |
95 | | - | |
96 | | - | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
97 | 125 | | |
98 | 126 | | |
99 | 127 | | |
| |||
127 | 155 | | |
128 | 156 | | |
129 | 157 | | |
| 158 | + | |
130 | 159 | | |
131 | 160 | | |
132 | 161 | | |
| |||
302 | 331 | | |
303 | 332 | | |
304 | 333 | | |
305 | | - | |
| 334 | + | |
306 | 335 | | |
307 | 336 | | |
308 | 337 | | |
| |||
351 | 380 | | |
352 | 381 | | |
353 | 382 | | |
354 | | - | |
| 383 | + | |
355 | 384 | | |
356 | 385 | | |
357 | 386 | | |
| |||
504 | 533 | | |
505 | 534 | | |
506 | 535 | | |
507 | | - | |
| 536 | + | |
508 | 537 | | |
509 | 538 | | |
510 | 539 | | |
| |||
0 commit comments