Added board sidebar close btn and adjusted title position.
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user