Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

[60619] Add relation dialog is overflowing when the ticket name is rather long (#17645)

Behrokh Satarnejad6c21ecd3d571
diff --git a/frontend/src/global_styles/content/_forms.sass b/frontend/src/global_styles/content/_forms.sass
index 6598d59069e..ca4f6758f30 100644
--- a/frontend/src/global_styles/content/_forms.sass
+++ b/frontend/src/global_styles/content/_forms.sass
@@ -967,3 +967,6 @@ input[type=date], input[type=time]
display: inline-block
width: 100%
overflow: auto
+
+.form-autocompleter-container
+ overflow: hidden
diff --git a/frontend/src/global_styles/content/_projects_autocomplete_with_search_icon.sass b/frontend/src/global_styles/content/_projects_autocomplete_with_search_icon.sass
index 5217245665e..432ddf054c7 100644
--- a/frontend/src/global_styles/content/_projects_autocomplete_with_search_icon.sass
+++ b/frontend/src/global_styles/content/_projects_autocomplete_with_search_icon.sass
@@ -10,3 +10,6 @@
&:before
@include icon-font-common
padding-left: 10px
+ // Reduce width of search icon from width of ng-container value which is calc(100% - 30px)
+ .ng-value-container
+ width: calc(100% - 60px)
diff --git a/lib/primer/open_project/forms/autocompleter.html.erb b/lib/primer/open_project/forms/autocompleter.html.erb
index 8a8139b0473..cb6e71d9010 100644
--- a/lib/primer/open_project/forms/autocompleter.html.erb
+++ b/lib/primer/open_project/forms/autocompleter.html.erb
@@ -1,6 +1,6 @@
<%= render(FormControl.new(input: @input, data: @wrapper_data_attributes)) do %>
<%= content_tag(:div, **@field_wrap_arguments) do %>
- <%= content_tag(:div, class: ("projects-autocomplete-with-search-icon" if @with_search_icon)) do %>
+ <%= content_tag(:div, class: ["form-autocompleter-container", ("projects-autocomplete-with-search-icon" if @with_search_icon)]) do %>
<%= angular_component_tag(@autocomplete_component,
data: @autocomplete_data,
inputs: @autocomplete_inputs) %>
diff --git a/modules/meeting/app/forms/meeting/project_autocompleter.rb b/modules/meeting/app/forms/meeting/project_autocompleter.rb
index 93257c1bfcc..728d9ff2922 100644
--- a/modules/meeting/app/forms/meeting/project_autocompleter.rb
+++ b/modules/meeting/app/forms/meeting/project_autocompleter.rb
@@ -43,6 +43,7 @@ class Meeting::ProjectAutocompleter < ApplicationForm
dropdownPosition: "bottom",
inputName: "project_id",
inputValue: @project&.id,
+ appendTo: "#new-meeting-dialog",
filters: [{ name: "user_action", operator: "=", values: ["meetings/create"] }]
}
)