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 the existing overflow class instead of a custom css rule. The cost_types did not need the overflow selector any more as the datepicker was rendered as direct child of the DOM anyway.

Henriette Dargee0f86e087954
diff --git a/app/components/members/table_component.rb b/app/components/members/table_component.rb
index 1737238a52f..d0cb617fd29 100644
--- a/app/components/members/table_component.rb
+++ b/app/components/members/table_component.rb
@@ -101,6 +101,10 @@ module Members
{ caption: }
end
+ def container_class
+ "generic-table--container_visible-overflow"
+ end
+
##
# Adjusts the order so that users are joined to support
# sorting by their attributes
diff --git a/app/components/table_component.html.erb b/app/components/table_component.html.erb
index 6fe25f4f57f..f3162d84db3 100644
--- a/app/components/table_component.html.erb
+++ b/app/components/table_component.html.erb
@@ -27,7 +27,7 @@ See COPYRIGHT and LICENSE files for more details.
++#%>
-<div class="generic-table--container" data-test-selector="<%= test_selector %>">
+<div class="generic-table--container <%= container_class %>" data-test-selector="<%= test_selector %>">
<div class="generic-table--results-container">
<table class="generic-table">
<colgroup>
diff --git a/app/components/table_component.rb b/app/components/table_component.rb
index c1c85c05fcc..0494a92862c 100644
--- a/app/components/table_component.rb
+++ b/app/components/table_component.rb
@@ -157,6 +157,10 @@ class TableComponent < ApplicationComponent
self.class.row_class
end
+ def container_class
+ self.class.container_class
+ end
+
def columns
self.class.columns
end
diff --git a/frontend/src/global_styles/content/_members.sass b/frontend/src/global_styles/content/_members.sass
index 9d622a53de5..df6c4ea4cfb 100644
--- a/frontend/src/global_styles/content/_members.sass
+++ b/frontend/src/global_styles/content/_members.sass
@@ -71,10 +71,3 @@
max-width: 60%
select
max-width: 60%
-
-// Ugly hack copied from projects list. Firefox doesn't yet support popover
-// attribute by default, so popup menu is clipped by overflow
-body.controller-members.action-index
- #content
- .generic-table--container
- overflow: visible
diff --git a/frontend/src/global_styles/content/_table.sass b/frontend/src/global_styles/content/_table.sass
index eae4123ca54..c005aab3858 100644
--- a/frontend/src/global_styles/content/_table.sass
+++ b/frontend/src/global_styles/content/_table.sass
@@ -67,9 +67,7 @@ $toolbar-height--mobile: 100px
padding-bottom: var(--generic-table--footer-height)
&_visible-overflow
- &,
- .generic-table--results-container
- overflow: visible
+ overflow: visible
.generic-table--results-container
height: 100%
diff --git a/modules/costs/app/views/cost_types/edit.html.erb b/modules/costs/app/views/cost_types/edit.html.erb
index ccdfcc7cb39..9457795b873 100644
--- a/modules/costs/app/views/cost_types/edit.html.erb
+++ b/modules/costs/app/views/cost_types/edit.html.erb
@@ -57,7 +57,7 @@ See COPYRIGHT and LICENSE files for more details.
</div>
<h3><%= t :caption_rate_history %></h3>
- <div class="generic-table--container generic-table--container_visible-overflow">
+ <div class="generic-table--container">
<div class="generic-table--results-container">
<table class="generic-table">
<colgroup>