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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
[#61937] add absolute position to pattern input dropdown
Eric Schubertfba88c5c0198
diff --git a/app/components/work_package_types/pattern_input.html.erb b/app/components/work_package_types/pattern_input.html.erbindex eda2e088844..5156e296944 100644--- a/app/components/work_package_types/pattern_input.html.erb+++ b/app/components/work_package_types/pattern_input.html.erb@@ -31,7 +31,7 @@ See COPYRIGHT and LICENSE files for more details.render(FormControl.new(input: @input,- classes: "pattern-input",+ classes: "op-pattern-input","data-controller": "pattern-input","data-pattern-input-pattern-initial-value": @value,"data-pattern-input-insert-as-text-template-value": I18n.t("types.edit.subject_configuration.pattern.insert_as_text"),@@ -94,7 +94,7 @@ See COPYRIGHT and LICENSE files for more details.Primer::BaseComponent.new(tag: :div,contenteditable: true,- border: true, border_radius: 2, p: 1, classes: :input,+ border: true, border_radius: 2, p: 1, classes: "op-pattern-input--text-field","data-pattern-input-target": "content",data: {action: "keydown->pattern-input#input_keydowndiff --git a/app/components/work_package_types/pattern_input.rb b/app/components/work_package_types/pattern_input.rbindex 8915573a26d..15c80735a23 100644--- a/app/components/work_package_types/pattern_input.rb+++ b/app/components/work_package_types/pattern_input.rb@@ -49,8 +49,11 @@ module WorkPackageTypes@suggestions_list_component ||= Primer::Alpha::ActionList.new(role: :list,scheme: :inset,+ classes: "op-pattern-input--suggestions-dropdown",ml: 0,- "data-pattern-input-target": "suggestions"+ data: {+ "pattern-input-target": "suggestions"+ })endenddiff --git a/app/components/work_package_types/pattern_input.sass b/app/components/work_package_types/pattern_input.sassindex ce3e1eb9fb4..bc5643cc8b5 100644--- a/app/components/work_package_types/pattern_input.sass+++ b/app/components/work_package_types/pattern_input.sass@@ -1,5 +1,5 @@-.pattern-input- .input+.op-pattern-input+ &--text-fieldwhite-space: pre-wrap&:focus,@@ -7,3 +7,12 @@border-color: var(--focus-outlineColor) !importantbox-shadow: inset 0 0 0 1px var(--focus-outlineColor)outline: none++ &--suggestions-dropdown+ position: absolute+ top: 32px+ background: var(--body-background)+ z-index: 1+ width: 100%+ max-height: 300px+ overflow: auto