Removes nicescroll from issuable sidebar

This commit is contained in:
Phil Hughes 2017-05-16 15:59:48 +00:00 committed by Annabel Dunstone Gray
parent 032cbcdbf5
commit c0b612ff07
3 changed files with 9 additions and 13 deletions

View File

@ -59,18 +59,6 @@ gl.issueBoards.BoardSidebar = Vue.extend({
},
deep: true
},
issue () {
if (this.showSidebar) {
this.$nextTick(() => {
$('.right-sidebar').getNiceScroll(0).doScrollTop(0, 0);
$('.right-sidebar').getNiceScroll().resize();
});
}
this.issue = this.detail.issue;
this.list = this.detail.list;
},
deep: true
},
methods: {
closeSidebar () {

View File

@ -47,7 +47,6 @@ import UsersSelect from './users_select';
Cookies.set('collapsed_gutter', true);
}
});
$(".right-sidebar").niceScroll();
}
IssuableContext.prototype.initParticipants = function() {

View File

@ -197,6 +197,15 @@
background: $gray-light;
padding: 10px 20px;
z-index: 200;
overflow: hidden;
.issuable-sidebar {
width: calc(100% + 100px);
height: 100%;
overflow-y: scroll;
overflow-x: hidden;
-webkit-overflow-scrolling: touch;
}
&.right-sidebar-expanded {
width: $gutter_width;