From d2734ecaccd115b3d40dd34162623d72c736d6ce Mon Sep 17 00:00:00 2001 From: leiyong <1549684884@qq.com> Date: Wed, 10 Mar 2021 09:57:37 +0800 Subject: [PATCH] * Finish task#36456. --- module/index/css/index.css | 4 ++-- module/index/js/index.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/module/index/css/index.css b/module/index/css/index.css index e37dc2c621..8961806ea5 100644 --- a/module/index/css/index.css +++ b/module/index/css/index.css @@ -61,10 +61,10 @@ body.menu-hide {padding-left: 0;} #userNav .dropdown-submenu:focus > a, #userNav .dropdown-submenu:hover > a {background-color: rgba(0,0,0,.2);} #poweredBy{width: 40%; position: absolute; top: 4px; right: 0; padding: 0;} -#globalSearchDiv{width:50%; float: right; margin-right: 4px;} +#globalSearchDiv{width:52%; float: right; margin-right: 4px;} @media screen and (max-height: 768px) { - #globalSearchDiv{width: 60%;} + #globalSearchDiv{width: 62%;} } #globalSearchDiv .input-group{width: 82%; float: right; margin-top: 2px;} @media screen and (max-height: 768px) diff --git a/module/index/js/index.js b/module/index/js/index.js index 3ea5f24731..774584d135 100644 --- a/module/index/js/index.js +++ b/module/index/js/index.js @@ -531,7 +531,7 @@ $.extend( gotoObject:function() { objectType = $('#searchType').attr('value'); - objectValue = $('input#globalSearchInput').attr('value'); + objectValue = $('#globalSearchInput').attr('value'); if(objectType && objectValue) { @@ -590,7 +590,7 @@ $(function() var $this = $(this); var isActiveType = $this.data('value') === searchType && searchType !== 'all'; $this.closest('li').toggleClass('selected active', isActiveType); - $this.html($this.data('name') + ' #' + (val.length > 4 ? (val.substr(0, 4) + '...') : val) + ""); + $this.html($this.data('name') + ' #' + (val.length > 7 ? (val.substr(0, 7) + '...') : val) + ""); if(isActiveType) $dropmenu.addClass('with-active'); }); }