mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Restore "layout-left" styles for collapsed review panel comment popover (#7999)
GitOrigin-RevId: 230e202496c8bc7e4929fca9c35b7f8eba25653b
This commit is contained in:
parent
cd11db456d
commit
5d05b2b21d
1 changed files with 5 additions and 2 deletions
|
@ -92,6 +92,7 @@ export default App.controller(
|
|||
},
|
||||
commentThreads: {},
|
||||
resolvedThreadIds: {},
|
||||
layoutToLeft: false,
|
||||
rendererData: {},
|
||||
formattedProjectMembers: {},
|
||||
fullTCStateCollapsed: true,
|
||||
|
@ -126,9 +127,11 @@ export default App.controller(
|
|||
$scope.$broadcast('review-panel:layout')
|
||||
)
|
||||
|
||||
$scope.$on('layout:pdf:resize', (event, state) =>
|
||||
$scope.$on('layout:pdf:resize', (event, state) => {
|
||||
$scope.reviewPanel.layoutToLeft =
|
||||
state.east?.size < 220 || state.east?.initClosed
|
||||
$scope.$broadcast('review-panel:layout', false)
|
||||
)
|
||||
})
|
||||
|
||||
$scope.$on('expandable-text-area:resize', event =>
|
||||
$timeout(() => $scope.$broadcast('review-panel:layout'))
|
||||
|
|
Loading…
Reference in a new issue