Commit 37268ea
committed
Fix docked-panel expand and history-drag regressions
Two issues Ahmed flagged on the chat-dock PR. First, the right-side
history panel's drag-resize broke once a second right-side FlexPanel
mounted -- DraggableSeparator's cached useElementBounding only refreshes
on size/scroll changes, not when a sibling shifts our position. Calling
update() on each drag tick keeps the math honest. Second, the chat
dock's collapse chevron was setting only FlexPanel's local show ref
while chatStore.chatVisible stayed true, so the activity-bar icon
needed two clicks to bring the panel back. FlexPanel now emits a close
event the chat parent maps to chatStore.hideChat() (history panel
keeps its existing local-state fallback). Also marks the route watcher
as immediate so a direct hit on /chatgxy doesn't double up with the
dock at hydration.1 parent a3bd802 commit 37268ea
3 files changed
Lines changed: 14 additions & 2 deletions
File tree
- client/src
- components
- Common
- Panels
- entry/analysis/modules
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
44 | 49 | | |
45 | 50 | | |
46 | 51 | | |
| |||
66 | 71 | | |
67 | 72 | | |
68 | 73 | | |
| 74 | + | |
69 | 75 | | |
70 | 76 | | |
71 | 77 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
| |||
109 | 110 | | |
110 | 111 | | |
111 | 112 | | |
112 | | - | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
113 | 117 | | |
114 | 118 | | |
115 | 119 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
| |||
100 | 101 | | |
101 | 102 | | |
102 | 103 | | |
103 | | - | |
| 104 | + | |
| 105 | + | |
104 | 106 | | |
105 | 107 | | |
106 | 108 | | |
| |||
0 commit comments