File diff suppressed because one or more lines are too long
@@ -32,6 +32,7 @@ PurpleMine.SidebarToggler = (function () {
|
|||||||
this.sidebarVisible = true
|
this.sidebarVisible = true
|
||||||
this.sidebarHiding = null
|
this.sidebarHiding = null
|
||||||
this.$toggler = null
|
this.$toggler = null
|
||||||
|
this.$header = $('#header')
|
||||||
this.$main = $('#main')
|
this.$main = $('#main')
|
||||||
this.$sidebar = $('#sidebar')
|
this.$sidebar = $('#sidebar')
|
||||||
this.lang = document.documentElement.lang
|
this.lang = document.documentElement.lang
|
||||||
@@ -42,13 +43,6 @@ PurpleMine.SidebarToggler = (function () {
|
|||||||
|
|
||||||
this._ = translations[this.lang]
|
this._ = translations[this.lang]
|
||||||
|
|
||||||
// Fix issue with context menu position
|
|
||||||
if (this.$main.css('position') === 'relative') {
|
|
||||||
$(window).on('load', function () {
|
|
||||||
$('#context-menu').appendTo('#wrapper')
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
handleSidebar()
|
handleSidebar()
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -96,7 +90,7 @@ PurpleMine.SidebarToggler = (function () {
|
|||||||
'"></a>'
|
'"></a>'
|
||||||
instance.$toggler = $(togglerHtml)
|
instance.$toggler = $(togglerHtml)
|
||||||
|
|
||||||
instance.$main.append(instance.$toggler)
|
instance.$header.append(instance.$toggler)
|
||||||
instance.$toggler.on('click', instance.toggleSidebar)
|
instance.$toggler.on('click', instance.toggleSidebar)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -8,8 +8,6 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
#context-menu {
|
#context-menu {
|
||||||
position: fixed;
|
|
||||||
|
|
||||||
> ul,
|
> ul,
|
||||||
> ul > li > ul {
|
> ul > li > ul {
|
||||||
@include nice-shadow(2);
|
@include nice-shadow(2);
|
||||||
|
|||||||
@@ -1,7 +1,5 @@
|
|||||||
@if $enable-sidebar-toggler {
|
@if $enable-sidebar-toggler {
|
||||||
#main {
|
#main {
|
||||||
position: relative;
|
|
||||||
|
|
||||||
// Fix full screen view for dashboard plugin
|
// Fix full screen view for dashboard plugin
|
||||||
// https://github.com/jgraichen/redmine_dashboard
|
// https://github.com/jgraichen/redmine_dashboard
|
||||||
@at-root .controller-rdb_taskboard & {
|
@at-root .controller-rdb_taskboard & {
|
||||||
@@ -38,9 +36,11 @@
|
|||||||
.sidebar-toggler {
|
.sidebar-toggler {
|
||||||
display: block;
|
display: block;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 1px;
|
z-index: 2;
|
||||||
|
bottom: -1px;
|
||||||
width: 14px;
|
width: 14px;
|
||||||
height: 16px;
|
height: 16px;
|
||||||
|
transform: translateY(100%);
|
||||||
border: 2px solid $gray-700;
|
border: 2px solid $gray-700;
|
||||||
border-radius: $border-radius-base;
|
border-radius: $border-radius-base;
|
||||||
background-color: $gray-200;
|
background-color: $gray-200;
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user