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
fixed icon only async dialog trigger button paddings
Jonas Jabarid584f09223fa
diff --git a/modules/meeting/app/components/op_turbo/op_primer/async_dialog_component.html.erb b/modules/meeting/app/components/op_turbo/op_primer/async_dialog_component.html.erbindex 2955f10eb7f..430e9194511 100644--- a/modules/meeting/app/components/op_turbo/op_primer/async_dialog_component.html.erb+++ b/modules/meeting/app/components/op_turbo/op_primer/async_dialog_component.html.erb@@ -5,11 +5,14 @@title: @title,size: @size)) do |dialog|- dialog.with_show_button(**merged_button_attributes) do |button|- button.with_leading_visual_icon(icon: @button_icon) if @button_icon- @button_text+ if @button_text+ dialog.with_show_button(**merged_text_button_attributes) do |button|+ button.with_leading_visual_icon(icon: @button_icon) if @button_icon+ @button_text+ end+ else+ dialog.with_show_button(**merged_icon_button_attributes)end-content_tag("turbo-frame",id: "#{@id}-frame",loading: :lazy,diff --git a/modules/meeting/app/components/op_turbo/op_primer/async_dialog_component.rb b/modules/meeting/app/components/op_turbo/op_primer/async_dialog_component.rbindex 6a8ef3ce376..93a51f8815b 100644--- a/modules/meeting/app/components/op_turbo/op_primer/async_dialog_component.rb+++ b/modules/meeting/app/components/op_turbo/op_primer/async_dialog_component.rb@@ -32,7 +32,8 @@ module OpTurboinclude ApplicationHelperinclude ::OpPrimer::ComponentHelpers- def initialize(id:, src:, title:, button_icon: nil, button_text: nil, button_attributes: {}, size: :auto)+ def initialize(id:, src:, title:, button_icon: nil, button_icon_label: nil, button_text: nil, button_attributes: {},+ size: :auto)super@id = id@@ -40,6 +41,7 @@ module OpTurbo@title = title@size = size@button_icon = button_icon+ @button_icon_label = button_icon_label@button_text = button_text@button_attributes = button_attributesend@@ -53,7 +55,7 @@ module OpTurbo}end- def merged_button_attributes+ def merged_text_button_attributesstimuls_action_ref = 'click->op-turbo-op-primer-async-dialog#reinitFrame'@button_attributes[:data] = {} if @button_attributes[:data].nil?@@ -61,6 +63,12 @@ module OpTurbo@button_attributesend++ def merged_icon_button_attributes+ merged_text_button_attributes.merge(+ icon: @button_icon, 'aria-label': @button_icon_label+ )+ endendendenddiff --git a/modules/overviews/app/components/project_custom_fields/sections/show_component.html.erb b/modules/overviews/app/components/project_custom_fields/sections/show_component.html.erbindex 0d114a622a6..c5138dd3c86 100644--- a/modules/overviews/app/components/project_custom_fields/sections/show_component.html.erb+++ b/modules/overviews/app/components/project_custom_fields/sections/show_component.html.erb@@ -16,6 +16,7 @@size: :medium_portrait,title: @project_custom_field_section.name,button_icon: :pencil,+ button_icon_label: t('edit'),button_attributes: { scheme: :invisible, data: {qa_selector: "project-custom-field-section-edit-button"} }