diff --git a/src/App.vue b/src/App.vue index 32e6376b..42230b9f 100644 --- a/src/App.vue +++ b/src/App.vue @@ -109,11 +109,29 @@ import TagsIcon from 'vue-material-design-icons/Tag.vue'; }) export default class App extends Mixins(GlobalMixin, UserConfig) { // Outer element + + public mounted() { + // Get the content-vue element and add nextcloud version as a class to it + const contentVue = document.querySelector('#content-vue'); + if (contentVue) { + const version = (window.OC).config.version.split('.'); + contentVue.classList.add('nextcloud-major-' + version[0]); + } + } } -