Commit a52a31e6 authored by Miguel Rincon's avatar Miguel Rincon

Merge branch 'ps-fix-new-project-margin' into 'master'

Fix top margin in "new project"

See merge request gitlab-org/gitlab!47109
parents a36cb945 a476fd8b
...@@ -122,3 +122,10 @@ ...@@ -122,3 +122,10 @@
margin-left: $gl-spacing-scale-3; margin-left: $gl-spacing-scale-3;
} }
} }
// This is used to help prevent issues with margin collapsing.
// See https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Box_Model/Mastering_margin_collapsing.
.gl-force-block-formatting-context::after {
content: '';
display: flex;
}
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
.content-wrapper{ class: "#{@content_wrapper_class}" } .content-wrapper{ class: "#{@content_wrapper_class}" }
.mobile-overlay .mobile-overlay
= yield :group_invite_members_banner = yield :group_invite_members_banner
.alert-wrapper .alert-wrapper.gl-force-block-formatting-context
= render 'shared/outdated_browser' = render 'shared/outdated_browser'
= render_if_exists "layouts/header/licensed_user_count_threshold" = render_if_exists "layouts/header/licensed_user_count_threshold"
= render_if_exists "layouts/header/token_expiry_notification" = render_if_exists "layouts/header/token_expiry_notification"
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
- header_title _("Projects"), dashboard_projects_path - header_title _("Projects"), dashboard_projects_path
- active_tab = local_assigns.fetch(:active_tab, 'blank') - active_tab = local_assigns.fetch(:active_tab, 'blank')
.project-edit-container.gl-mt-3 .project-edit-container.gl-mt-5
.project-edit-errors .project-edit-errors
= render 'projects/errors' = render 'projects/errors'
......
---
title: Fix top margin in new project page
merge_request: 47109
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