1
0
mirror of https://github.com/MisskeyIO/misskey synced 2024-12-14 14:48:49 +09:00

Improve deck usability

This commit is contained in:
syuilo 2018-10-20 07:21:22 +09:00
parent e0d6f7c7c4
commit 209fe7dcaf
No known key found for this signature in database
GPG Key ID: BDC4C49D06AB9D69

View File

@ -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