Added board sidebar close btn and adjusted title position.
This commit is contained in:
@@ -21,8 +21,11 @@
|
|||||||
-->
|
-->
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div class="sidebar-header">
|
||||||
Board sidebar {{ board.title }}
|
<a class="icon-close" title="Close" @click="closeSidebar">
|
||||||
|
<span class="hidden-visually">Close</span>
|
||||||
|
</a>
|
||||||
|
<h3>{{ board.title }}</h3>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -36,10 +39,30 @@ export default {
|
|||||||
return {}
|
return {}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
closeSidebar: function() {
|
||||||
|
this.$store.dispatch('toggleSidebar')
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</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>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user