From 5fb0a995dd2d9cf65ed93fca78502f42a7c3e22d Mon Sep 17 00:00:00 2001 From: Satsuki Yanagi <17376330+u1-liquid@users.noreply.github.com> Date: Sun, 5 May 2019 09:27:55 +0900 Subject: 様々な修正 (#4859) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Typo, Redundant code, Syntax error の修正 --- src/client/app/mobile/views/components/drive.vue | 15 ++++++++++----- src/client/app/mobile/views/components/notes.vue | 2 +- src/client/app/mobile/views/components/notifications.vue | 2 +- src/client/app/mobile/views/components/post-form.vue | 4 ++-- src/client/app/mobile/views/components/ui.header.vue | 2 +- 5 files changed, 15 insertions(+), 10 deletions(-) (limited to 'src/client/app/mobile') diff --git a/src/client/app/mobile/views/components/drive.vue b/src/client/app/mobile/views/components/drive.vue index b79c0b3806..2613cfff99 100644 --- a/src/client/app/mobile/views/components/drive.vue +++ b/src/client/app/mobile/views/components/drive.vue @@ -83,7 +83,7 @@ export default Vue.extend({ hierarchyFolders: [], selectedFiles: [], info: null, - connection: null + connection: null, fetching: true, fetchingMoreFiles: false, @@ -385,7 +385,7 @@ export default Vue.extend({ createFolder() { this.$root.dialog({ - title: this.$t('folder-name') + title: this.$t('folder-name'), input: { default: this.folder.name } @@ -415,7 +415,7 @@ export default Vue.extend({ return; } this.$root.dialog({ - title: this.$t('folder-name') + title: this.$t('folder-name'), input: { default: this.folder.name } @@ -597,12 +597,17 @@ export default Vue.extend({ bottom 0 animation-delay -1.0s - @keyframes sk-rotate { 100% { transform: rotate(360deg); }} + @keyframes sk-rotate { + 100% { + transform: rotate(360deg); + } + } @keyframes sk-bounce { 0%, 100% { transform: scale(0.0); - } 50% { + } + 50% { transform: scale(1.0); } } diff --git a/src/client/app/mobile/views/components/notes.vue b/src/client/app/mobile/views/components/notes.vue index 5ad80c286d..047c4c2714 100644 --- a/src/client/app/mobile/views/components/notes.vue +++ b/src/client/app/mobile/views/components/notes.vue @@ -174,7 +174,7 @@ export default Vue.extend({ this.releaseQueue(); } - if (this.$store.state.settings.fetchOnScroll !== false) { + if (this.$store.state.settings.fetchOnScroll) { // 親要素が display none だったら弾く // https://github.com/syuilo/misskey/issues/1569 // http://d.hatena.ne.jp/favril/20091105/1257403319 diff --git a/src/client/app/mobile/views/components/notifications.vue b/src/client/app/mobile/views/components/notifications.vue index b129ad54aa..a0edab65ec 100644 --- a/src/client/app/mobile/views/components/notifications.vue +++ b/src/client/app/mobile/views/components/notifications.vue @@ -115,7 +115,7 @@ export default Vue.extend({ }, onScroll() { - if (this.$store.state.settings.fetchOnScroll !== false) { + if (this.$store.state.settings.fetchOnScroll) { // 親要素が display none だったら弾く // https://github.com/syuilo/misskey/issues/1569 // http://d.hatena.ne.jp/favril/20091105/1257403319 diff --git a/src/client/app/mobile/views/components/post-form.vue b/src/client/app/mobile/views/components/post-form.vue index 82cbdcc547..326ff57c1f 100644 --- a/src/client/app/mobile/views/components/post-form.vue +++ b/src/client/app/mobile/views/components/post-form.vue @@ -295,7 +295,7 @@ export default Vue.extend({ }, err => { this.$root.dialog({ type: 'error', - title: this.$t('error') + title: this.$t('error'), text: err.message }); }, { @@ -341,7 +341,7 @@ export default Vue.extend({ post() { this.posting = true; - const viaMobile = this.$store.state.settings.disableViaMobile !== true; + const viaMobile = !this.$store.state.settings.disableViaMobile; this.$root.api('notes/create', { text: this.text == '' ? undefined : this.text, fileIds: this.files.length > 0 ? this.files.map(f => f.id) : undefined, diff --git a/src/client/app/mobile/views/components/ui.header.vue b/src/client/app/mobile/views/components/ui.header.vue index 068679567d..b636041d63 100644 --- a/src/client/app/mobile/views/components/ui.header.vue +++ b/src/client/app/mobile/views/components/ui.header.vue @@ -49,7 +49,7 @@ export default Vue.extend({ padding 0 8px &.shadow - box-shadow 0 0px 8px rgba(0, 0, 0, 0.25) + box-shadow 0 0 8px rgba(0, 0, 0, 0.25) &, * user-select none -- cgit v1.2.3-freya