From 5640418003688aa059288870ea29420213d15f65 Mon Sep 17 00:00:00 2001 From: Varun Patil Date: Sat, 8 Oct 2022 16:56:25 -0700 Subject: [PATCH] Fix Nextcloud 25 borders --- src/App.vue | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) 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]); + } + } } -