BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
1897d556
Commit
1897d556
authored
Jan 27, 2017
by
Annabel Dunstone Gray
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'mr-tabs-container-offset' into 'master'
Fixed merge request tabs extra margin Closes #26853 See merge request !8841
parents
6ccc4eb4
d7c0955b
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
13 deletions
+24
-13
issuable.scss
app/assets/stylesheets/pages/issuable.scss
+0
-4
merge_requests.scss
app/assets/stylesheets/pages/merge_requests.scss
+19
-7
_show.html.haml
app/views/projects/merge_requests/_show.html.haml
+1
-2
mr-tabs-container-offset.yml
changelogs/unreleased/mr-tabs-container-offset.yml
+4
-0
No files found.
app/assets/stylesheets/pages/issuable.scss
View file @
1897d556
...
...
@@ -26,10 +26,6 @@
border
:
0
;
}
}
.container-fluid
{
@extend
.fixed-width-container
;
}
}
}
...
...
app/assets/stylesheets/pages/merge_requests.scss
View file @
1897d556
...
...
@@ -420,10 +420,6 @@
.merge-request-tabs-holder
{
background-color
:
$white-light
;
.container-limited
{
max-width
:
$limited-layout-width
;
}
&
.affix
{
top
:
100px
;
left
:
0
;
...
...
@@ -433,10 +429,26 @@
@media
(
max-width
:
$screen-xs-max
)
{
right
:
0
;
}
.merge-request-tabs-container
{
padding-left
:
$gl-padding
;
padding-right
:
$gl-padding
;
}
}
}
&
:not
(
.affix
)
.container-fluid
{
padding-left
:
0
;
padding-right
:
0
;
.limit-container-width
{
.merge-request-tabs-container
{
max-width
:
$limited-layout-width
;
margin-left
:
auto
;
margin-right
:
auto
;
}
}
.limit-container-width
:not
(
.container-limited
)
{
.merge-request-tabs-holder
:not
(
.affix
)
{
.merge-request-tabs-container
{
max-width
:
$limited-layout-width
-
(
$gl-padding
*
2
);
}
}
}
app/views/projects/merge_requests/_show.html.haml
View file @
1897d556
...
...
@@ -52,7 +52,7 @@
=
render
'award_emoji/awards_block'
,
awardable:
@merge_request
,
inline:
true
.merge-request-tabs-holder
{
class:
(
"js-tabs-affix"
unless
ENV
[
'RAILS_ENV'
]
==
'test'
)
}
%div
{
class:
container_class
}
.merge-request-tabs-container
%ul
.merge-request-tabs.nav-links.no-top.no-bottom
%li
.notes-tab
=
link_to
namespace_project_merge_request_path
(
@project
.
namespace
,
@project
,
@merge_request
),
data:
{
target:
'div#notes'
,
action:
'notes'
,
toggle:
'tab'
}
do
...
...
@@ -115,4 +115,3 @@
});
var
mrRefreshWidgetUrl
=
"
#{
mr_widget_refresh_url
(
@merge_request
)
}
"
;
changelogs/unreleased/mr-tabs-container-offset.yml
0 → 100644
View file @
1897d556
---
title
:
Fixed merge requests tab extra margin when fixed to window
merge_request
:
author
:
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment