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

Utilize system arguments for layouting

Aaron Contreras10b6cdbfceb5
diff --git a/app/components/work_packages/share/counter_component.html.erb b/app/components/work_packages/share/counter_component.html.erb
index 3b4013531a5..71144ef8f38 100644
--- a/app/components/work_packages/share/counter_component.html.erb
+++ b/app/components/work_packages/share/counter_component.html.erb
@@ -1,13 +1,14 @@
<%=
- component_wrapper(class: 'op-share-wp-modal-body--header--counter--container',
- data: { test_selector: 'op-share-wp-active-count'}) do
- # There's no point in rendering the BulkSelectionCounterComponent even if
- # I'm able to manage shares if the only user that the work package is
- # currently shared is myself, since I'm not able to manage my own share.
- if sharing_manageable? && shared_with_anyone_else_other_than_myself?
- render(WorkPackages::Share::BulkSelectionCounterComponent.new(count:))
- else
- render(WorkPackages::Share::ShareCounterComponent.new(count:))
+ component_wrapper(data: { test_selector: 'op-share-wp-active-count'}) do
+ render(Primer::Box.new(display: :flex, aligns_items: :center)) do
+ # There's no point in rendering the BulkSelectionCounterComponent even if
+ # I'm able to manage shares if the only user that the work package is
+ # currently shared is myself, since I'm not able to manage my own share.
+ if sharing_manageable? && shared_with_anyone_else_other_than_myself?
+ render(WorkPackages::Share::BulkSelectionCounterComponent.new(count:))
+ else
+ render(WorkPackages::Share::ShareCounterComponent.new(count:))
+ end
end
end
%>
diff --git a/app/components/work_packages/share/modal_body_component.sass b/app/components/work_packages/share/modal_body_component.sass
index 11f74891dfd..c652e5b9e26 100644
--- a/app/components/work_packages/share/modal_body_component.sass
+++ b/app/components/work_packages/share/modal_body_component.sass
@@ -16,7 +16,3 @@
grid-template-columns: 1fr auto
grid-template-areas: "counter actions"
grid-column-gap: 10px
- &--counter
- &--container
- display: flex // Vertically align checkbox and counter
- align-items: center