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

Update index_component.html.erb

Henriette Darge44006780e91a
diff --git a/app/components/work_package_relations_tab/index_component.html.erb b/app/components/work_package_relations_tab/index_component.html.erb
index 804d2da6780..e78e21510bb 100644
--- a/app/components/work_package_relations_tab/index_component.html.erb
+++ b/app/components/work_package_relations_tab/index_component.html.erb
@@ -1,15 +1,15 @@
<%= component_wrapper(tag: "turbo-frame") do %>
<%=
if should_render_create_button?
- flex_layout(justify_content: :space_between, mb: 4) do |action_bar|
- action_bar.with_column do
+ flex_layout(justify_content: :space_between, align_items: :center, mb: 4) do |action_bar|
+ action_bar.with_column(pr: 1) do
render(Primer::Beta::Text.new(color: :muted)) do
t("#{I18N_NAMESPACE}.index.action_bar_title")
end
end
# Prevent the menu from overflowing on Safari
- action_bar.with_column(flex_shrink: 0) do
+ action_bar.with_column(flex_shrink: 0, ml: 2) do
render(Primer::Alpha::ActionMenu.new(test_selector: NEW_RELATION_ACTION_MENU,
menu_id: NEW_RELATION_ACTION_MENU)) do |menu|
menu.with_show_button do |button|