From: Jan-Christoph Borchardt Date: Wed, 25 Mar 2015 23:36:02 +0000 (+0100) Subject: move triangle of apps dropdown to align with app name triangle X-Git-Tag: v8.1.0alpha1~163^2~8 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d7414fbf0d9d5a38966ddfb5b58543bfc59089d2;p=nextcloud-server.git move triangle of apps dropdown to align with app name triangle --- diff --git a/core/js/js.js b/core/js/js.js index 378af83d090..1ae776692fe 100644 --- a/core/js/js.js +++ b/core/js/js.js @@ -1139,6 +1139,12 @@ function initCore() { $('#settings #expanddiv').hide(); }); + // move triangle of apps dropdown to align with app name triangle + // 68 is the additional offset coming from the logo width + var caretPosition = $('.header-appname + .icon-caret').position().left + 68; + document.styleSheets[2].addRule('#navigation:after', + 'left: '+ caretPosition +'px;'); + // all the tipsy stuff needs to be here (in reverse order) to work $('.displayName .action').tipsy({gravity:'se', fade:true, live:true}); $('.password .action').tipsy({gravity:'se', fade:true, live:true});