diff options
author | Jan C. Borchardt <hey@jancborchardt.net> | 2020-08-24 21:16:31 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2020-08-25 20:30:43 +0200 |
commit | c8d92ba6f9a1cc1d6bb29171fab1230fe2ee2823 (patch) | |
tree | c73e8b1cfe26377642fa0825b29a47ee154bde21 /apps/dashboard/src | |
parent | fe3374d843ed0dcd756c798db128dbfbb8ad0f58 (diff) | |
download | nextcloud-server-c8d92ba6f9a1cc1d6bb29171fab1230fe2ee2823.tar.gz nextcloud-server-c8d92ba6f9a1cc1d6bb29171fab1230fe2ee2823.zip |
Add shadow behind navigation when Dashboard is scrolled
Signed-off-by: Jan C. Borchardt <hey@jancborchardt.net>
Diffstat (limited to 'apps/dashboard/src')
-rw-r--r-- | apps/dashboard/src/App.vue | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/apps/dashboard/src/App.vue b/apps/dashboard/src/App.vue index e7668468a50..fac1aab2805 100644 --- a/apps/dashboard/src/App.vue +++ b/apps/dashboard/src/App.vue @@ -225,13 +225,6 @@ export default { } } }, - backgroundImage: { - immediate: true, - handler() { - const header = document.getElementById('header') - header.style.backgroundImage = `url(${this.backgroundImage})` - }, - }, }, mounted() { this.updateGlobalStyles() @@ -366,7 +359,7 @@ export default { this.saveStatuses() }, handleScroll() { - if (window.scrollY > 50) { + if (window.scrollY > 70) { document.body.classList.add('dashboard--scrolled') } else { document.body.classList.remove('dashboard--scrolled') @@ -376,10 +369,6 @@ export default { } </script> -<style lang="scss"> - -</style> - <style lang="scss" scoped> #app-dashboard { width: 100%; |