From 33380b3c3066bab54320781f15baf7130f5e0b3c Mon Sep 17 00:00:00 2001 From: marijus Date: Tue, 20 Jan 2015 15:00:44 +0100 Subject: as a workaround make nav-search dropdown behave a little better --- view/css/bootstrap-red.css | 8 +------- view/js/autocomplete.js | 8 ++++---- view/theme/redbasic/css/style.css | 6 ++++++ 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/view/css/bootstrap-red.css b/view/css/bootstrap-red.css index 5d9bb6e90..0c2d30284 100644 --- a/view/css/bootstrap-red.css +++ b/view/css/bootstrap-red.css @@ -38,13 +38,6 @@ nav .dropdown-menu .contactname { display: block; } -nav .dropdown-menu img { - float: left; - margin-right: 5px; - width: 32px; - height: 32px; -} - nav .dropdown-menu li a { overflow: hidden; text-overflow: ellipsis; @@ -67,6 +60,7 @@ nav .navbar-toggle { /* nav overrides end */ .dropdown-menu img { + float: left; width: 32px; height: 32px; margin-right: 5px; diff --git a/view/js/autocomplete.js b/view/js/autocomplete.js index 50ba99279..2fcf7000b 100644 --- a/view/js/autocomplete.js +++ b/view/js/autocomplete.js @@ -56,7 +56,7 @@ function contact_format(item) { var desc = ((item.label) ? item.nick + ' ' + item.label : item.nick) if(typeof desc === 'undefined') desc = ''; if(desc) desc = ' ('+desc+')'; - return "
{2}{3}
".format(item.taggable, item.photo, item.name, desc, item.link) + return "
{2}
{3}
".format(item.taggable, item.photo, item.name, desc, item.link) } else return "
"+item.text+"
" @@ -111,7 +111,7 @@ function submit_form(e) { replace: function(item) { return "$1"+item['text'] + ' '; }, } this.attr('autocomplete','off'); - this.textcomplete([contacts,smilies],{className:'acpopup',zIndex:1050}); + this.textcomplete([contacts,smilies],{className:'acpopup',zIndex:1020}); }; })( jQuery ); @@ -130,7 +130,7 @@ function submit_form(e) { template: contact_format, } this.attr('autocomplete','off'); - var a = this.textcomplete([contacts],{className:'acpopup',maxCount:100,zIndex: 1050}); + var a = this.textcomplete([contacts],{className:'acpopup',maxCount:100,zIndex: 1020,appendTo:'nav'}); a.on('textComplete:select', function(e,value,strategy) { submit_form(this); }); @@ -153,7 +153,7 @@ function submit_form(e) { } this.attr('autocomplete','off'); - var a = this.textcomplete([contacts],{className:'acpopup',zIndex:1050}); + var a = this.textcomplete([contacts],{className:'acpopup',zIndex:1020}); if(autosubmit) a.on('textComplete:select', function(e,value,strategy) { submit_form(this); }); diff --git a/view/theme/redbasic/css/style.css b/view/theme/redbasic/css/style.css index c24bee1fd..3bb9fc72f 100644 --- a/view/theme/redbasic/css/style.css +++ b/view/theme/redbasic/css/style.css @@ -874,6 +874,12 @@ footer { font-family: FontAwesome; } +nav .acpopup { + top: 49px !important; + right: 30px !important; + margin-left: -45px; +} + .profile-clear { clear: both; } -- cgit v1.2.3 From 5ee815b2fa0b46864972a60e0171e14f91fbd2b5 Mon Sep 17 00:00:00 2001 From: marijus Date: Tue, 20 Jan 2015 21:10:41 +0100 Subject: satisfy the floated images --- view/css/bootstrap-red.css | 2 +- view/js/autocomplete.js | 2 +- view/tpl/profile_vcard.tpl | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/view/css/bootstrap-red.css b/view/css/bootstrap-red.css index 0c2d30284..5c9831907 100644 --- a/view/css/bootstrap-red.css +++ b/view/css/bootstrap-red.css @@ -41,7 +41,7 @@ nav .dropdown-menu .contactname { nav .dropdown-menu li a { overflow: hidden; text-overflow: ellipsis; - line-height: 1em; + //line-height: 1em; padding: 5px 10px; } diff --git a/view/js/autocomplete.js b/view/js/autocomplete.js index 2fcf7000b..0e2392976 100644 --- a/view/js/autocomplete.js +++ b/view/js/autocomplete.js @@ -56,7 +56,7 @@ function contact_format(item) { var desc = ((item.label) ? item.nick + ' ' + item.label : item.nick) if(typeof desc === 'undefined') desc = ''; if(desc) desc = ' ('+desc+')'; - return "
{2}
{3}
".format(item.taggable, item.photo, item.name, desc, item.link) + return "
{2}
{3}
".format(item.taggable, item.photo, item.name, desc, item.link) } else return "
"+item.text+"
" diff --git a/view/tpl/profile_vcard.tpl b/view/tpl/profile_vcard.tpl index 6904c2fec..bff3148f3 100755 --- a/view/tpl/profile_vcard.tpl +++ b/view/tpl/profile_vcard.tpl @@ -6,7 +6,7 @@