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

Enforce the three dots menu to always stay at the top of the line, even if the subject spans muliple lines

Henriette Darge0ee044959dca
diff --git a/app/components/work_package_relations_tab/index_component.rb b/app/components/work_package_relations_tab/index_component.rb
index ac30b1eae35..f96171becfb 100644
--- a/app/components/work_package_relations_tab/index_component.rb
+++ b/app/components/work_package_relations_tab/index_component.rb
@@ -61,7 +61,7 @@ class WorkPackageRelationsTab::IndexComponent < ApplicationComponent
end
items.each do |item|
- border_box.with_row(py: 2, test_selector: row_test_selector(item)) do
+ border_box.with_row(py: 3, test_selector: row_test_selector(item)) do
yield(item)
end
end
diff --git a/app/components/work_package_relations_tab/relation_component.html.erb b/app/components/work_package_relations_tab/relation_component.html.erb
index c032584a1f5..22bb64dc9dd 100644
--- a/app/components/work_package_relations_tab/relation_component.html.erb
+++ b/app/components/work_package_relations_tab/relation_component.html.erb
@@ -1,11 +1,11 @@
<%=
flex_layout do |flex|
- flex.with_row(mb: 1, mt: 1) do
+ flex.with_row do
render(WorkPackages::InfoLineComponent.new(work_package: related_work_package))
end
- flex.with_row(flex_layout: true, justify_content: :space_between, align_items: :center, mb: 1) do |subject_line_row|
- subject_line_row.with_column do
+ flex.with_row(flex_layout: true, justify_content: :space_between, align_items: :flex_start) do |subject_line_row|
+ subject_line_row.with_column(py: 2) do
render(Primer::Beta::Link.new(href: work_package_path(related_work_package),
color: :default,
underline: false,
@@ -53,7 +53,7 @@ flex_layout do |flex|
end
if should_display_description?
- flex.with_row(flex_layout: true, mb: 1) do |description_row|
+ flex.with_row(flex_layout: true) do |description_row|
description_row.with_column do
render(Primer::Beta::Text.new(font_size: :small, color: :muted)) { format_text(relation, :description) }
end
diff --git a/frontend/src/global_styles/content/work_packages/single_view/_single_view.sass b/frontend/src/global_styles/content/work_packages/single_view/_single_view.sass
index d5d98b2d774..34b80a3a9ea 100644
--- a/frontend/src/global_styles/content/work_packages/single_view/_single_view.sass
+++ b/frontend/src/global_styles/content/work_packages/single_view/_single_view.sass
@@ -94,10 +94,6 @@
textarea
resize: vertical
-.detail-panel-description
- margin: 0
- line-height: 18px
-
// Let the absolute autocomplete modify the height
// of the relation tab so we can scroll to the results
.detail-panel--autocomplete-target