Added board sidebar close btn and adjusted title position.

This commit is contained in:
Vadim Nicolai
2018-12-20 09:58:09 +02:00
parent adc44622eb
commit 021e3aa346

View File

@@ -21,8 +21,11 @@
-->
<template>
<div>
Board sidebar {{ board.title }}
<div class="sidebar-header">
<a class="icon-close" title="Close" @click="closeSidebar">
<span class="hidden-visually">Close</span>
</a>
<h3>{{ board.title }}</h3>
</div>
</template>
@@ -36,10 +39,30 @@ export default {
return {}
}
}
},
methods: {
closeSidebar: function() {
this.$store.dispatch('toggleSidebar')
}
}
}
</script>
<style scoped>
<style lang="scss" scoped>
.sidebar-header {
h3 {
font-size: 14pt;
padding: 15px 15px 3px;
margin: 0;
overflow: hidden;
}
}
.icon-close {
position: absolute;
top: 0px;
right: 0px;
padding: 14px;
height: 24px;
width: 24px;
}
</style>