Use theme prop instead of class for v-main background
This commit is contained in:
@@ -3,13 +3,7 @@
|
||||
<NavBar />
|
||||
|
||||
<!-- Main content of the application -->
|
||||
<v-main
|
||||
:class="[
|
||||
$vuetify.theme.current.dark
|
||||
? 'bg-grey-darken-1'
|
||||
: 'bg-green-lighten-5',
|
||||
]"
|
||||
>
|
||||
<v-main :theme="$vuetify.theme.current.dark ? 'dark' : 'light'">
|
||||
<NuxtPage />
|
||||
</v-main>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user