The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Rocket.Chat/client/lib/flexTab.coffee

13 lines
385 B

@FlexTab = (->
check = ->
$flex = $("section.flex-tab")
if $flex.length
$search = $flex.find ".search-form"
if $search.length
$siblings = $search.siblings("a")
if $siblings.length
width = ($siblings.outerWidth() + $siblings.css("marginLeft").replace("px","") * 2) * $siblings.length + 1
$search.css
width: "calc(100% - #{width}px)"
check: check
)()