Commit 4aad29b3 authored by Justin Ho's avatar Justin Ho

Fix horizontal scrolling on blocked/private profile

Previous code used a row and columns without a container
to reset padding / margin, thus it caused the row to
overflow and make the page scroll horizontally.

The row and col-12 were removed since there is no point
in using columns when it spans the full width.
parent 1ea531ad
......@@ -160,15 +160,12 @@
.loading.hide
.spinner.spinner-md
- if profile_tabs.empty?
.row
.col-12
.svg-content
= image_tag 'illustrations/profile_private_mode.svg'
.col-12.text-center
.text-content
%h4
- if @user.blocked?
= s_('UserProfile|This user is blocked')
- else
= s_('UserProfile|This user has a private profile')
- if profile_tabs.empty?
.svg-content
= image_tag 'illustrations/profile_private_mode.svg'
.text-content.text-center
%h4
- if @user.blocked?
= s_('UserProfile|This user is blocked')
- else
= s_('UserProfile|This user has a private profile')
---
title: Fix horizontal scrolling on blocked/private profile pages
merge_request: 39568
author:
type: fixed
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment