]> source.dussan.org Git - redmine.git/commitdiff
Fix that issues autocomplete may not find issues with a subject longer than 60 charac...
authorGo MAEDA <maeda@farend.jp>
Mon, 18 May 2020 14:13:58 +0000 (14:13 +0000)
committerGo MAEDA <maeda@farend.jp>
Mon, 18 May 2020 14:13:58 +0000 (14:13 +0000)
Contributed by Mizuki ISHIKAWA.

git-svn-id: http://svn.redmine.org/redmine/trunk@19784 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/controllers/auto_completes_controller.rb
public/stylesheets/application.css

index c0a0c242aaed8a72d88088df8dab6a6689b3448c..3b87d9e81f85e5802f1629094eabe923c81d689e 100644 (file)
@@ -56,7 +56,7 @@ class AutoCompletesController < ApplicationController
     issues.map {|issue|
       {
         'id' => issue.id,
-        'label' => "#{issue.tracker} ##{issue.id}: #{issue.subject.to_s.truncate(60)}",
+        'label' => "#{issue.tracker} ##{issue.id}: #{issue.subject.to_s.truncate(255)}",
         'value' => issue.id
       }
     }
index 83699dc3f7015c527e3e46f837176212734f0a1c..aae15b68042a56ee31c05af15f159bbf41b4a689 100644 (file)
@@ -1638,6 +1638,7 @@ img.filecontent.image {background-image: url(../images/transparent.png);}
 }
 .ui-autocomplete .ui-menu-item > div, .ui-menu .ui-menu-item > div {
   padding: 4px 8px;
+  max-width: 500px;
 }
 .ui-state-active, .ui-widget-content .ui-state-active, .ui-widget-header .ui-state-active {
   border-color: #759FCF;