Merge pull request #470 from sharelatex/pr-fix-v2-resizers-width

Configure splitter width in v2
This commit is contained in:
Alasdair Smith 2018-04-03 10:24:31 +01:00 committed by GitHub
commit 3668912102

View file

@ -311,11 +311,11 @@ module.exports = (app, webRouter, privateApiRouter, publicApiRouter)->
webRouter.use (req, res, next) ->
isOl = (Settings.brandPrefix == 'ol-')
res.locals.uiConfig =
defaultResizerSizeOpen : if isOl then 2 else 24
defaultResizerSizeClosed : if isOl then 2 else 24
defaultResizerSizeOpen : if isOl then 7 else 24
defaultResizerSizeClosed : if isOl then 7 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
chatResizerSizeOpen : if isOl then 7 else 12
chatResizerSizeClosed : 0
chatMessageBorderSaturation: if isOl then "85%" else "70%"
chatMessageBorderLightness : if isOl then "40%" else "70%"