diff options
author | Julius Härtl <jus@bitgrid.net> | 2022-08-26 22:44:48 +0200 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2022-09-01 14:15:40 +0200 |
commit | ac134f5f47f9c5ef09194e674b990f0ec491541b (patch) | |
tree | f44bc9a5e7e6bf0d6f4788519b1e4cceae371631 /apps/dashboard | |
parent | 702b0cccd6f0d7c44a8199154d738beeb3a34086 (diff) | |
download | nextcloud-server-ac134f5f47f9c5ef09194e674b990f0ec491541b.tar.gz nextcloud-server-ac134f5f47f9c5ef09194e674b990f0ec491541b.zip |
Restore dashboard layout
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'apps/dashboard')
-rw-r--r-- | apps/dashboard/src/DashboardApp.vue | 35 |
1 files changed, 30 insertions, 5 deletions
diff --git a/apps/dashboard/src/DashboardApp.vue b/apps/dashboard/src/DashboardApp.vue index 6a3662279d6..4477ce29016 100644 --- a/apps/dashboard/src/DashboardApp.vue +++ b/apps/dashboard/src/DashboardApp.vue @@ -1,5 +1,5 @@ <template> - <div id="app-dashboard" :style="backgroundStyle"> + <div id="app-dashboard"> <h2>{{ greeting.text }}</h2> <ul class="statuses"> <div v-for="status in sortedRegisteredStatus" @@ -172,7 +172,7 @@ export default { } return { - backgroundImage: this.background === 'default' ? 'var(--image-main-background)' : `url(${this.backgroundImage})`, + backgroundImage: this.background === 'default' ? 'var(--image-main-background)' : `url('${this.backgroundImage}')`, } }, @@ -365,10 +365,18 @@ export default { if (isBackgroundBright) { document.querySelector('#header').style.setProperty('--primary-invert-if-bright', 'invert(100%)') document.querySelector('#header').style.setProperty('--color-primary-text', '#000000') + //document.body.removeAttribute('data-theme-dark') + //document.body.setAttribute('data-theme-light', 'true') } else { - document.querySelector('#header').style.removeProperty('--primary-invert-if-bright') - document.querySelector('#header').style.removeProperty('--color-primary-text') + document.querySelector('#header').style.setProperty('--primary-invert-if-bright', 'no') + document.querySelector('#header').style.setProperty('--color-primary-text', '#ffffff') + //document.body.removeAttribute('data-theme-light') + //document.body.setAttribute('data-theme-dark', 'true') } + + document.documentElement.style.setProperty('--image-main-background', this.backgroundStyle.backgroundImage); + document.querySelector('#header').style.setProperty('--image-main-background', this.backgroundStyle.backgroundImage); + document.querySelector('body').style.setProperty('--image-main-background', this.backgroundStyle.backgroundImage); }, updateSkipLink() { // Make sure "Skip to main content" link points to the app content @@ -426,7 +434,6 @@ export default { background-position: center center; background-repeat: no-repeat; background-attachment: fixed; - background-color: var(--color-primary); > h2 { color: var(--color-primary-text); @@ -675,3 +682,21 @@ export default { } } </style> +<style> +html, body { + overflow: auto; + position: static; + height: auto; + background-attachment: fixed; +} + +#body-user #header { + position: fixed; +} + +#content { + height: auto; + overflow: auto; + position: static !important;; +} +</style> |