Make sure the layout lib knows about the resizer width in v2.

This commit is contained in:
Paulo Reis 2018-03-29 10:35:17 +01:00
parent bc46044f85
commit bd3c12cf90

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%"