Skip to content

Commit

Permalink
Merge pull request #17337 from opf/bug/59772-buttons-not-visible-on-i…
Browse files Browse the repository at this point in the history
…os-in-edit-relations-modal

[59772] Buttons not visible on iOS in edit relations modal
  • Loading branch information
HDinger authored Dec 5, 2024
2 parents 6a4cd4b + be92e46 commit 310785e
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
size: :large,
id: DIALOG_ID)) do |d|
d.with_header(variant: :large)
d.with_body(classes: "Overlay-body_autocomplete_height") do
d.with_body(classes: body_classes) do
render(WorkPackageRelationsTab::AddWorkPackageChildFormComponent.new(
work_package: @work_package
))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,4 +51,8 @@ def dialog_title
child_label = t("#{I18N_NAMESPACE}.relations.label_child_singular")
t("#{I18N_NAMESPACE}.label_add_x", x: child_label)
end

def body_classes
"Overlay-body_autocomplete_height"
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
size: :large,
id: DIALOG_ID)) do |d|
d.with_header(variant: :large)
d.with_body(classes: "Overlay-body_autocomplete_height") do
d.with_body(classes: body_classes) do
render(WorkPackageRelationsTab::WorkPackageRelationFormComponent.new(
work_package: @work_package,
relation: @relation
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,8 @@ def dialog_title
t("#{I18N_NAMESPACE}.label_add_x", x: relation_label)
end
end

def body_classes
@relation.persisted? ? nil : "Overlay-body_autocomplete_height"
end
end

0 comments on commit 310785e

Please sign in to comment.