]> 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>
Wed, 13 May 2020 07:22:44 +0000 (07:22 +0000)
committerGo MAEDA <maeda@farend.jp>
Wed, 13 May 2020 07:22:44 +0000 (07:22 +0000)
Contributed by Mizuki ISHIKAWA.

git-svn-id: http://svn.redmine.org/redmine/trunk@19773 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 954006bed7d478319326e147222a28558d1721c6..278d104506696b2ad0b10f4e3b4cb44bd6424a20 100644 (file)
@@ -1638,6 +1638,7 @@ img.filecontent.image {background-image: url(../images/transparent.png);}
 }
 .ui-autocomplete .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;