Skip to content

Commit

Permalink
Merge pull request #13438 from opf/fix/49595-activity-column-width
Browse files Browse the repository at this point in the history
fix: Make activity page columns the same width
  • Loading branch information
aaron-contreras authored Aug 10, 2023
2 parents c7accc9 + 2d68d9f commit d6c5a6d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/views/placeholder_users/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -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 %>
Expand Down
2 changes: 1 addition & 1 deletion app/views/users/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -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) %>
Expand Down
9 changes: 9 additions & 0 deletions frontend/src/global_styles/layout/_grid.sass
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d6c5a6d

Please sign in to comment.