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

Use smaller variant for ActionMenus of sharing dialog to ensure that they do not span the whole width of the dialog they are rendered in

Henriette Darge6ed97fa6f683
diff --git a/app/components/shares/modal_body_component.html.erb b/app/components/shares/modal_body_component.html.erb
index 97de19aeae1..8f7252944dd 100644
--- a/app/components/shares/modal_body_component.html.erb
+++ b/app/components/shares/modal_body_component.html.erb
@@ -28,6 +28,7 @@
header_actions.with_column(mr: 2) do
render(Primer::Alpha::ActionMenu.new(anchor_align: :end,
select_variant: :single,
+ size: :small,
dynamic_label: true,
dynamic_label_prefix: I18n.t('sharing.filter.type'),
color: :muted,
@@ -50,6 +51,7 @@
header_actions.with_column do
render(Primer::Alpha::ActionMenu.new(anchor_align: :end,
select_variant: :single,
+ size: :small,
dynamic_label: true,
dynamic_label_prefix: I18n.t('sharing.filter.role'),
color: :muted,