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

fix: Make activity page columns the same width

Benjamin Bädorf2d68d9f16c9c
diff --git a/app/views/placeholder_users/show.html.erb b/app/views/placeholder_users/show.html.erb
index 4341fdbf2bc..4a7071a9dbd 100644
--- a/app/views/placeholder_users/show.html.erb
+++ b/app/views/placeholder_users/show.html.erb
@@ -43,7 +43,7 @@ See COPYRIGHT and LICENSE files for more details.
<% end %>
<% end %>
-<div class="grid-block medium-up-2">
+<div class="grid-block grid-block_double-column">
<div class="grid-content">
<%= call_hook :view_account_left_top, placeholder_user: @placeholder_user %>
diff --git a/app/views/users/show.html.erb b/app/views/users/show.html.erb
index 19d1534ff20..d06c82d58ac 100644
--- a/app/views/users/show.html.erb
+++ b/app/views/users/show.html.erb
@@ -53,7 +53,7 @@ See COPYRIGHT and LICENSE files for more details.
</li>
<% end %>
<% end %>
-<div class="grid-block medium-up-2">
+<div class="grid-block grid-block_double-column">
<div class="grid-content">
<%= call_hook :view_account_left_top, user: @user %>
<% if visible_user_information?(@user) %>
diff --git a/frontend/src/global_styles/layout/_grid.sass b/frontend/src/global_styles/layout/_grid.sass
index 0f592c85067..0320775c3e7 100644
--- a/frontend/src/global_styles/layout/_grid.sass
+++ b/frontend/src/global_styles/layout/_grid.sass
@@ -262,6 +262,15 @@ $block-grid-max-size: 6 !default
&, .grid-content
overflow: visible
+ &_double-column
+ flex-wrap: wrap
+
+ > .grid-content
+ min-width: 300px
+ flex-basis: 50%
+ flex-shrink: 0
+ flex-grow: 1
+
.grid-content
@extend %child-core
@include grid-content