mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-24 03:33:27 +00:00
Add per brand UI specific chat message styles.
This commit is contained in:
parent
ca68f01a9d
commit
e47b20390b
1 changed files with 10 additions and 6 deletions
|
@ -296,10 +296,14 @@ 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
|
||||
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
|
||||
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
|
||||
chatMessageBorderSaturation: if isOl then 90 else 70
|
||||
chatMessageBorderLightness : if isOl then 50 else 70
|
||||
chatMessageBgSaturation : if isOl then 90 else 60
|
||||
chatMessageBgLightness : if isOl then 50 else 97
|
||||
next()
|
||||
|
|
Loading…
Reference in a new issue