Merge pull request #13997 from overleaf/td-review-panel-mini-hover

React review panel: make hovering an entry in the mini review panel display correctly

GitOrigin-RevId: 41a40e4047b89d2a8db15b2e12baf04c11b78e21
This commit is contained in:
Tim Down
2023-07-25 08:03:55 +00:00
committed by Copybot
parent 8623b4d0f4
commit f2b5ac23f8
13 changed files with 249 additions and 127 deletions
@@ -31,8 +31,10 @@ export const dispatchEditorEvent = (type: string, payload?: unknown) => {
}, 0)
}
export const dispatchReviewPanelLayout = () => {
window.dispatchEvent(new CustomEvent('review-panel:layout'))
export const dispatchReviewPanelLayout = (force = false) => {
window.dispatchEvent(
new CustomEvent('review-panel:layout', { detail: { force } })
)
}
const scheduleDispatchReviewPanelLayout = debounce(