mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
Added some updates on node_modules and fixed tab width issue in chat
This commit is contained in:
8
static/js/lib/materialize.js
vendored
8
static/js/lib/materialize.js
vendored
@@ -1067,8 +1067,12 @@ $(document).ready(function(){
|
||||
$this.append('<div class="indicator"></div>');
|
||||
var $indicator = $this.find('.indicator');
|
||||
if ($this.is(":visible")) {
|
||||
$indicator.css({"right": $tabs_width - (($index + 1) * $tab_width)});
|
||||
$indicator.css({"left": $index * $tab_width});
|
||||
setTimeout(function(){
|
||||
$tabs_width = $this.width();
|
||||
$tab_width = $this.find('li').first().outerWidth();
|
||||
$indicator.css({"right": $tabs_width - (($index + 1) * $tab_width)});
|
||||
$indicator.css({"left": $index * $tab_width});
|
||||
},50);
|
||||
}
|
||||
$(window).resize(function () {
|
||||
$tabs_width = $this.width();
|
||||
|
||||
Reference in New Issue
Block a user