Remove direct style manipulations in favor of classes
This commit is contained in:
parent
ed7310c04b
commit
fc865d3a12
5 changed files with 16 additions and 17 deletions
|
@ -31,8 +31,8 @@ const MobileNav = {
|
|||
},
|
||||
hideSitename () { return this.$store.state.instance.hideSitename },
|
||||
sitename () { return this.$store.state.instance.name },
|
||||
navBarStyle () {
|
||||
return { 'visibility': this.$route.name === 'chat' ? 'hidden' : 'visible' }
|
||||
isChat () {
|
||||
return this.$route.name === 'chat'
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
<nav
|
||||
id="nav"
|
||||
class="nav-bar container"
|
||||
:style="navBarStyle"
|
||||
:class="{ 'mobile-hidden': isChat }"
|
||||
>
|
||||
<div
|
||||
class="mobile-inner-nav"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue