fix style in mobile

This commit is contained in:
Pan 2019-03-22 13:12:03 +08:00
parent d919acf64b
commit ec7c585813
3 changed files with 13 additions and 1 deletions

View File

@ -45,6 +45,10 @@ export default {
mounted() { mounted() {
this.insertToBody() this.insertToBody()
}, },
beforeDestroy() {
const elx = this.$refs.rightPanel
elx.remove()
},
methods: { methods: {
addEventClick() { addEventClick() {
window.addEventListener('click', this.closeSidebar) window.addEventListener('click', this.closeSidebar)

View File

@ -91,4 +91,7 @@ export default {
.hideSidebar .fixed-header{ .hideSidebar .fixed-header{
width: calc(100% - 54px) width: calc(100% - 54px)
} }
.mobile .fixed-header{
width: 100%;
}
</style> </style>

View File

@ -220,7 +220,6 @@ $cursor: #fff;
color: #454545; color: #454545;
} }
} }
</style> </style>
<style rel="stylesheet/scss" lang="scss" scoped> <style rel="stylesheet/scss" lang="scss" scoped>
@ -299,5 +298,11 @@ $light_gray:#eee;
right: 0; right: 0;
bottom: 6px; bottom: 6px;
} }
@media only screen and (max-width: 470px) {
.thirdparty-button {
display: none;
}
}
} }
</style> </style>