Merge pull request #4910 from deniszulic/master

Added X for closing
This commit is contained in:
Lauri Ojansivu 2023-05-08 21:27:18 +03:00 committed by GitHub
commit acaefab0f4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 0 deletions

View file

@ -14,6 +14,12 @@
box-shadow: -10px 0px 5px -10px #b3b3b3;
z-index: 10;
}
.sidebar-xmark {
position: absolute;
right: 10px;
top: 5px;
font-size: 25px;
}
.sidebar .sidebar-content {
padding: 12px;
margin-bottom: 1.6em;
@ -24,6 +30,7 @@
left: 0;
overflow-x: hidden;
overflow-y: auto;
width: 90%;
}
.sidebar .sidebar-content .hide-btn {
display: none;

View file

@ -5,6 +5,7 @@ template(name="sidebar")
// title="{{showTongueTitle}}")
// i.fa.fa-navicon
.sidebar-shadow
a.sidebar-xmark.js-close-sidebar ✕
.sidebar-content.js-board-sidebar-content
//a.hide-btn.js-hide-sidebar
// i.fa.fa-navicon

View file

@ -125,6 +125,9 @@ BlazeComponent.extendComponent({
'click .js-shortcuts'() {
FlowRouter.go('shortcuts');
},
'click .js-close-sidebar'() {
Sidebar.toggle()
},
},
];
},