summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/client/app/desktop/views/pages/deck/deck.vue15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/client/app/desktop/views/pages/deck/deck.vue b/src/client/app/desktop/views/pages/deck/deck.vue
index 46b4fde7ef..669fbeb8c4 100644
--- a/src/client/app/desktop/views/pages/deck/deck.vue
+++ b/src/client/app/desktop/views/pages/deck/deck.vue
@@ -1,6 +1,6 @@
<template>
<mk-ui :class="$style.root">
- <div class="qlvquzbjribqcaozciifydkngcwtyzje" :style="style" :class="{ center: $store.state.device.deckColumnAlign == 'center' }" v-hotkey.global="keymap">
+ <div class="qlvquzbjribqcaozciifydkngcwtyzje" ref="body" :style="style" :class="{ center: $store.state.device.deckColumnAlign == 'center' }" v-hotkey.global="keymap">
<template v-for="ids in layout">
<div v-if="ids.length > 1" class="folder">
<template v-for="id, i in ids">
@@ -64,6 +64,19 @@ export default Vue.extend({
}
},
+ watch: {
+ temporaryColumn() {
+ if (this.temporaryColumn != null) {
+ this.$nextTick(() => {
+ this.$refs.body.scrollTo({
+ left: 10000,
+ behavior: 'smooth'
+ });
+ });
+ }
+ }
+ },
+
provide() {
return {
getColumnVm: this.getColumnVm