Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Jérome Perrin
gitlab-ce
Commits
12c6abf9
Commit
12c6abf9
authored
Aug 02, 2017
by
Mike Greiling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove nicescroll from jobs page and remove the library from common.bundle.js
parent
825224ba
Changes
10
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
98 additions
and
3737 deletions
+98
-3737
app/assets/javascripts/build.js
app/assets/javascripts/build.js
+0
-1
app/assets/javascripts/commons/jquery.js
app/assets/javascripts/commons/jquery.js
+0
-1
app/assets/stylesheets/framework/layout.scss
app/assets/stylesheets/framework/layout.scss
+2
-10
app/assets/stylesheets/framework/sidebar.scss
app/assets/stylesheets/framework/sidebar.scss
+1
-4
app/assets/stylesheets/new_sidebar.scss
app/assets/stylesheets/new_sidebar.scss
+1
-1
app/assets/stylesheets/pages/builds.scss
app/assets/stylesheets/pages/builds.scss
+9
-0
app/views/projects/jobs/_sidebar.html.haml
app/views/projects/jobs/_sidebar.html.haml
+85
-84
spec/javascripts/build_spec.js
spec/javascripts/build_spec.js
+0
-1
spec/javascripts/labels_issue_sidebar_spec.js
spec/javascripts/labels_issue_sidebar_spec.js
+0
-1
vendor/assets/javascripts/jquery.nicescroll.js
vendor/assets/javascripts/jquery.nicescroll.js
+0
-3634
No files found.
app/assets/javascripts/build.js
View file @
12c6abf9
...
@@ -164,7 +164,6 @@ window.Build = (function () {
...
@@ -164,7 +164,6 @@ window.Build = (function () {
Build
.
prototype
.
initSidebar
=
function
()
{
Build
.
prototype
.
initSidebar
=
function
()
{
this
.
$sidebar
=
$
(
'
.js-build-sidebar
'
);
this
.
$sidebar
=
$
(
'
.js-build-sidebar
'
);
this
.
$sidebar
.
niceScroll
();
};
};
Build
.
prototype
.
getBuildTrace
=
function
()
{
Build
.
prototype
.
getBuildTrace
=
function
()
{
...
...
app/assets/javascripts/commons/jquery.js
View file @
12c6abf9
...
@@ -6,6 +6,5 @@ import 'vendor/jquery.endless-scroll';
...
@@ -6,6 +6,5 @@ import 'vendor/jquery.endless-scroll';
import
'
vendor/jquery.caret
'
;
import
'
vendor/jquery.caret
'
;
import
'
vendor/jquery.atwho
'
;
import
'
vendor/jquery.atwho
'
;
import
'
vendor/jquery.scrollTo
'
;
import
'
vendor/jquery.scrollTo
'
;
import
'
vendor/jquery.nicescroll
'
;
import
'
vendor/jquery.waitforimages
'
;
import
'
vendor/jquery.waitforimages
'
;
import
'
select2/select2
'
;
import
'
select2/select2
'
;
app/assets/stylesheets/framework/layout.scss
View file @
12c6abf9
...
@@ -109,16 +109,8 @@ body {
...
@@ -109,16 +109,8 @@ body {
}
}
}
}
.page-with-sidebar
>
.content-wrapper
{
/* The following prevents side effects related to iOS Safari's implementation of -webkit-overflow-scrolling: touch,
min-height
:
calc
(
100vh
-
#{
$header-height
}
);
which is applied to the body by jquery.nicescroling plugin to force hardware acceleration for momentum scrolling. Side
effects are commonly related to inconsisent z-index behavior (e.g. tooltips). By applying the following to direct children
of the body element here, we negate cascading side effects but allow momentum scrolling to be applied to the body */
.navbar
,
.page-gutter
,
.page-with-sidebar
{
-webkit-overflow-scrolling
:
auto
;
}
}
.with-performance-bar
.page-with-sidebar
{
.with-performance-bar
.page-with-sidebar
{
...
...
app/assets/stylesheets/framework/sidebar.scss
View file @
12c6abf9
...
@@ -78,15 +78,12 @@
...
@@ -78,15 +78,12 @@
.right-sidebar
{
.right-sidebar
{
border-left
:
1px
solid
$border-color
;
border-left
:
1px
solid
$border-color
;
height
:
calc
(
100%
-
#{
$header-height
}
);
&
.affix
{
&
.affix
{
position
:
fixed
;
position
:
fixed
;
top
:
$header-height
;
top
:
$header-height
;
}
}
&
:not
(
.affix-top
)
{
min-height
:
100%
;
}
}
}
.with-performance-bar
.right-sidebar.affix
{
.with-performance-bar
.right-sidebar.affix
{
...
...
app/assets/stylesheets/new_sidebar.scss
View file @
12c6abf9
...
@@ -21,7 +21,7 @@ $new-sidebar-width: 220px;
...
@@ -21,7 +21,7 @@ $new-sidebar-width: 220px;
// Override position: absolute
// Override position: absolute
.right-sidebar
{
.right-sidebar
{
position
:
fixed
;
position
:
fixed
;
height
:
100%
;
height
:
calc
(
100%
-
#{
$header-height
}
)
;
}
}
.issues-bulk-update.right-sidebar.right-sidebar-expanded
.issuable-sidebar-header
{
.issues-bulk-update.right-sidebar.right-sidebar-expanded
.issuable-sidebar-header
{
...
...
app/assets/stylesheets/pages/builds.scss
View file @
12c6abf9
...
@@ -235,6 +235,15 @@
...
@@ -235,6 +235,15 @@
display
:
none
;
display
:
none
;
}
}
.sidebar-container
{
width
:
calc
(
100%
+
100px
);
padding-right
:
100px
;
height
:
100%
;
overflow-y
:
scroll
;
overflow-x
:
hidden
;
-webkit-overflow-scrolling
:
touch
;
}
.blocks-container
{
.blocks-container
{
padding
:
0
$gl-padding
;
padding
:
0
$gl-padding
;
}
}
...
...
app/views/projects/jobs/_sidebar.html.haml
View file @
12c6abf9
-
builds
=
@build
.
pipeline
.
builds
.
to_a
-
builds
=
@build
.
pipeline
.
builds
.
to_a
%aside
.right-sidebar.right-sidebar-expanded.build-sidebar.js-build-sidebar.js-right-sidebar
{
data:
{
"offset-top"
=>
"101"
,
"spy"
=>
"affix"
}
}
%aside
.right-sidebar.right-sidebar-expanded.build-sidebar.js-build-sidebar.js-right-sidebar
{
data:
{
"offset-top"
=>
"101"
,
"spy"
=>
"affix"
}
}
.sidebar-container
.blocks-container
.blocks-container
.block
.block
%strong
%strong
...
@@ -67,7 +68,7 @@
...
@@ -67,7 +68,7 @@
#{
@build
.
pipeline
.
git_commit_title
}
#{
@build
.
pipeline
.
git_commit_title
}
-
if
@build
.
pipeline
.
stages_count
>
1
-
if
@build
.
pipeline
.
stages_count
>
1
.dropdown.build-dropdown
.block-last
.dropdown.build-dropdown
%div
%div
%span
{
class:
"ci-status-icon-#{@build.pipeline.status}"
}
%span
{
class:
"ci-status-icon-#{@build.pipeline.status}"
}
=
ci_icon_for_status
(
@build
.
pipeline
.
status
)
=
ci_icon_for_status
(
@build
.
pipeline
.
status
)
...
...
spec/javascripts/build_spec.js
View file @
12c6abf9
...
@@ -5,7 +5,6 @@ import '~/lib/utils/datetime_utility';
...
@@ -5,7 +5,6 @@ import '~/lib/utils/datetime_utility';
import
'
~/lib/utils/url_utility
'
;
import
'
~/lib/utils/url_utility
'
;
import
'
~/build
'
;
import
'
~/build
'
;
import
'
~/breakpoints
'
;
import
'
~/breakpoints
'
;
import
'
vendor/jquery.nicescroll
'
;
describe
(
'
Build
'
,
()
=>
{
describe
(
'
Build
'
,
()
=>
{
const
BUILD_URL
=
`
${
gl
.
TEST_HOST
}
/frontend-fixtures/builds-project/-/jobs/1`
;
const
BUILD_URL
=
`
${
gl
.
TEST_HOST
}
/frontend-fixtures/builds-project/-/jobs/1`
;
...
...
spec/javascripts/labels_issue_sidebar_spec.js
View file @
12c6abf9
...
@@ -4,7 +4,6 @@
...
@@ -4,7 +4,6 @@
import
'
~/gl_dropdown
'
;
import
'
~/gl_dropdown
'
;
import
'
select2
'
;
import
'
select2
'
;
import
'
vendor/jquery.nicescroll
'
;
import
'
~/api
'
;
import
'
~/api
'
;
import
'
~/create_label
'
;
import
'
~/create_label
'
;
import
'
~/issuable_context
'
;
import
'
~/issuable_context
'
;
...
...
vendor/assets/javascripts/jquery.nicescroll.js
deleted
100644 → 0
View file @
825224ba
This source diff could not be displayed because it is too large. You can
view the blob
instead.
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