mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Add class when review panel should layout to the left.
This commit is contained in:
parent
9f008318cc
commit
e3e8541a63
2 changed files with 11 additions and 0 deletions
|
@ -18,6 +18,7 @@ div.full-size(
|
|||
'rp-state-overview': (reviewPanel.subView === SubViews.OVERVIEW),\
|
||||
'rp-size-mini': (!ui.reviewPanelOpen && reviewPanel.hasEntries),\
|
||||
'rp-size-expanded': ui.reviewPanelOpen\
|
||||
'rp-layout-left': reviewPanel.layoutToLeft
|
||||
}"
|
||||
)
|
||||
.loading-panel(ng-show="!editor.sharejs_doc || editor.opening")
|
||||
|
|
|
@ -22,6 +22,16 @@ define [
|
|||
loading: false
|
||||
commentThreads: {}
|
||||
resolvedThreadIds: {}
|
||||
layoutToLeft: false
|
||||
|
||||
$scope.$on "layout:pdf:linked", (event, state) ->
|
||||
$scope.reviewPanel.layoutToLeft = (state.east?.size < 220 || state.east?.initClosed)
|
||||
|
||||
$scope.$on "layout:pdf:resize", (event, state) ->
|
||||
$scope.reviewPanel.layoutToLeft = (state.east?.size < 220 || state.east?.initClosed)
|
||||
|
||||
$scope.$watch "ui.pdfLayout", (layout) ->
|
||||
$scope.reviewPanel.layoutToLeft = (layout == "flat")
|
||||
|
||||
$scope.commentState =
|
||||
adding: false
|
||||
|
|
Loading…
Reference in a new issue