]> source.dussan.org Git - nextcloud-server.git/commitdiff
move triangle of apps dropdown to align with app name triangle
authorJan-Christoph Borchardt <hey@jancborchardt.net>
Wed, 25 Mar 2015 23:36:02 +0000 (00:36 +0100)
committerJan-Christoph Borchardt <hey@jancborchardt.net>
Wed, 25 Mar 2015 23:43:11 +0000 (00:43 +0100)
core/js/js.js

index 378af83d090ba48f5f1fbfe7abd76e4f38c18c71..1ae776692fed7499e7d0c3b67262e195202402fb 100644 (file)
@@ -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});