mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-25 06:51:39 +00: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-state-overview': (reviewPanel.subView === SubViews.OVERVIEW),\
|
||||||
'rp-size-mini': (!ui.reviewPanelOpen && reviewPanel.hasEntries),\
|
'rp-size-mini': (!ui.reviewPanelOpen && reviewPanel.hasEntries),\
|
||||||
'rp-size-expanded': ui.reviewPanelOpen\
|
'rp-size-expanded': ui.reviewPanelOpen\
|
||||||
|
'rp-layout-left': reviewPanel.layoutToLeft
|
||||||
}"
|
}"
|
||||||
)
|
)
|
||||||
.loading-panel(ng-show="!editor.sharejs_doc || editor.opening")
|
.loading-panel(ng-show="!editor.sharejs_doc || editor.opening")
|
||||||
|
|
|
@ -22,6 +22,16 @@ define [
|
||||||
loading: false
|
loading: false
|
||||||
commentThreads: {}
|
commentThreads: {}
|
||||||
resolvedThreadIds: {}
|
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 =
|
$scope.commentState =
|
||||||
adding: false
|
adding: false
|
||||||
|
|
Loading…
Reference in a new issue