mirror of
https://github.com/overleaf/overleaf.git
synced 2025-03-07 07:31:28 +00:00
Configure resizer cursors for v2.
This commit is contained in:
parent
97129b5dda
commit
0652fc62a0
2 changed files with 8 additions and 0 deletions
|
@ -298,6 +298,8 @@ module.exports = (app, webRouter, privateApiRouter, publicApiRouter)->
|
|||
res.locals.uiConfig =
|
||||
defaultResizerSizeOpen : if isOl then 2 else 24
|
||||
defaultResizerSizeClosed : if isOl then 2 else 24
|
||||
eastResizerCursor : if isOl then "ew-resize" else null
|
||||
westResizerCursor : if isOl then "ew-resize" else null
|
||||
chatResizerSizeOpen : if isOl then 2 else 12
|
||||
chatResizerSizeClosed : 0
|
||||
next()
|
||||
|
|
|
@ -44,6 +44,12 @@ define [
|
|||
if !attrs.minimumRestoreSizeWest? or (state.west.size >= attrs.minimumRestoreSizeWest and !state.west.initClosed)
|
||||
options.west = state.west
|
||||
|
||||
if window.uiConfig.eastResizerCursor?
|
||||
options.east.resizerCursor = window.uiConfig.eastResizerCursor
|
||||
|
||||
if window.uiConfig.westResizerCursor?
|
||||
options.west.resizerCursor = window.uiConfig.westResizerCursor
|
||||
|
||||
repositionControls = () ->
|
||||
state = element.layout().readState()
|
||||
if state.east?
|
||||
|
|
Loading…
Reference in a new issue