Commit 9d966d55 authored by Kushal Pandya's avatar Kushal Pandya

Merge branch 'ph/218300/fixedSystemHeaderOnDiffs' into 'master'

Fixed alignment of merge request tabs and system header

See merge request gitlab-org/gitlab!44722
parents 022b2218 b65b1004
......@@ -38,6 +38,14 @@
top: $mr-file-header-top;
z-index: 120;
.with-system-header & {
top: $mr-file-header-top + $system-header-height;
}
.with-system-header.with-performance-bar & {
top: $mr-file-header-top + $system-header-height + $performance-bar-height;
}
&::before {
content: '';
position: absolute;
......@@ -1078,6 +1086,14 @@ table.code {
max-height: calc(100vh - #{$top-pos});
z-index: 202;
.with-system-header & {
top: $top-pos + $system-header-height;
}
.with-system-header.with-performance-bar & {
top: $top-pos + $system-header-height + $performance-bar-height;
}
.with-performance-bar & {
$performance-bar-top-pos: $performance-bar-height + $top-pos;
top: $performance-bar-top-pos;
......
......@@ -771,6 +771,14 @@ $mr-widget-min-height: 69px;
position: sticky;
top: $header-height + $mr-tabs-height;
.with-system-header & {
top: $header-height + $mr-tabs-height + $system-header-height;
}
.with-system-header.with-performance-bar & {
top: $header-height + $mr-tabs-height + $system-header-height + $performance-bar-height;
}
.mr-version-menus-container {
flex-wrap: nowrap;
}
......@@ -788,6 +796,14 @@ $mr-widget-min-height: 69px;
background-color: $white;
border-bottom: 1px solid $border-color;
.with-system-header & {
top: $header-height + $system-header-height;
}
.with-system-header.with-performance-bar & {
top: $header-height + $system-header-height + $performance-bar-height;
}
@include media-breakpoint-up(sm) {
position: -webkit-sticky;
position: sticky;
......
---
title: Fixed merge request tabs overlapping with system header
merge_request:
author:
type: fixed
......@@ -74,13 +74,6 @@ module EE
::Gitlab.config.smartcard.client_certificate_required_port
end
def page_class
class_names = super
class_names += system_message_class
class_names
end
override :autocomplete_data_sources
def autocomplete_data_sources(object, noteable_type)
return {} unless object && noteable_type
......
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