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

[65971] Hierarchy left side box doesn't go down the whole page (#19718)

Henriette Darge3522ffedb817
diff --git a/app/components/admin/custom_fields/hierarchy/items_component.html.erb b/app/components/admin/custom_fields/hierarchy/items_component.html.erb
index 50c30bb2fb1..7ae862e7211 100644
--- a/app/components/admin/custom_fields/hierarchy/items_component.html.erb
+++ b/app/components/admin/custom_fields/hierarchy/items_component.html.erb
@@ -30,9 +30,9 @@ See COPYRIGHT and LICENSE files for more details.
<% helpers.content_controller "admin--hierarchy-item" %>
<%=
- component_wrapper(tag: "turbo-frame", refresh: :morph, data: { turbo_action: :advance }) do
- render(Primer::Alpha::Layout.new(stacking_breakpoint: :md, classes: "custom-fields-hierarchy-page")) do |content|
- content.with_main do
+ component_wrapper(tag: "turbo-frame", class: "custom-fields-hierarchy-page--wrapper", refresh: :morph, data: { turbo_action: :advance }) do
+ render(Primer::Alpha::Layout.new(stacking_breakpoint: :md, overflow: :hidden, h: :full, classes: "custom-fields-hierarchy-page")) do |content|
+ content.with_main(overflow: :auto) do
flex_layout do |container|
container.with_row do
render(Primer::OpenProject::SubHeader.new) do |subheader|
@@ -95,7 +95,7 @@ See COPYRIGHT and LICENSE files for more details.
end
end
- content.with_sidebar(row_placement: :start, col_placement: :start, border: true, border_bottom: 0, p: 3, classes: "custom-fields-hierarchy-page--sidebar") do
+ content.with_sidebar(row_placement: :start, col_placement: :start, border: true, border_bottom: 0, p: 3, overflow: :auto, classes: "custom-fields-hierarchy-page--sidebar") do
render Admin::CustomFields::Hierarchy::TreeViewComponent.new(custom_field: root.custom_field, active_item: model)
end
end
diff --git a/frontend/src/global_styles/content/_hierachy_custom_field_layout.sass b/frontend/src/global_styles/content/_hierachy_custom_field_layout.sass
index c1c21beb64d..a004aa6d339 100644
--- a/frontend/src/global_styles/content/_hierachy_custom_field_layout.sass
+++ b/frontend/src/global_styles/content/_hierachy_custom_field_layout.sass
@@ -34,8 +34,10 @@ body:has(.custom-fields-hierarchy-page)
flex-direction: column
.custom-fields-hierarchy-page
- flex-grow: 1
-
&--sidebar
border-top-left-radius: var(--borderRadius-medium)
border-top-right-radius: var(--borderRadius-medium)
+
+ &--wrapper
+ height: 100%
+ overflow: hidden