diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2021-02-21 13:34:00 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2021-02-21 13:34:00 +0900 |
| commit | d8fb729aee7ea30082f3df475e5a29f21925c2c7 (patch) | |
| tree | aafadb29ffd42d2d93ae1518d7d47ad4f5aed019 /src/client | |
| parent | Messagingの入力中インジケータを実装 (diff) | |
| download | sharkey-d8fb729aee7ea30082f3df475e5a29f21925c2c7.tar.gz sharkey-d8fb729aee7ea30082f3df475e5a29f21925c2c7.tar.bz2 sharkey-d8fb729aee7ea30082f3df475e5a29f21925c2c7.zip | |
デザインの調整など
Diffstat (limited to 'src/client')
| -rw-r--r-- | src/client/components/notes.vue | 4 | ||||
| -rw-r--r-- | src/client/init.ts | 3 | ||||
| -rw-r--r-- | src/client/ui/chat/header-clock.vue | 24 | ||||
| -rw-r--r-- | src/client/ui/chat/note.vue | 1 | ||||
| -rw-r--r-- | src/client/ui/chat/notes.vue | 4 |
5 files changed, 29 insertions, 7 deletions
diff --git a/src/client/components/notes.vue b/src/client/components/notes.vue index ebb87622af..332f00e5db 100644 --- a/src/client/components/notes.vue +++ b/src/client/components/notes.vue @@ -8,7 +8,7 @@ <MkError v-if="error" @retry="init()"/> <div v-show="more && reversed" style="margin-bottom: var(--margin);"> - <MkButton class="_buttonPrimary" style="margin: 0 auto;" @click="fetchMoreFeature" :disabled="moreFetching" :style="{ cursor: moreFetching ? 'wait' : 'pointer' }"> + <MkButton style="margin: 0 auto;" @click="fetchMoreFeature" :disabled="moreFetching" :style="{ cursor: moreFetching ? 'wait' : 'pointer' }"> <template v-if="!moreFetching">{{ $ts.loadMore }}</template> <template v-if="moreFetching"><MkLoading inline/></template> </MkButton> @@ -19,7 +19,7 @@ </XList> <div v-show="more && !reversed" style="margin-top: var(--margin);"> - <MkButton class="_buttonPrimary" style="margin: 0 auto;" v-appear="$store.state.enableInfiniteScroll ? fetchMore : null" @click="fetchMore" :disabled="moreFetching" :style="{ cursor: moreFetching ? 'wait' : 'pointer' }"> + <MkButton style="margin: 0 auto;" v-appear="$store.state.enableInfiniteScroll ? fetchMore : null" @click="fetchMore" :disabled="moreFetching" :style="{ cursor: moreFetching ? 'wait' : 'pointer' }"> <template v-if="!moreFetching">{{ $ts.loadMore }}</template> <template v-if="moreFetching"><MkLoading inline/></template> </MkButton> diff --git a/src/client/init.ts b/src/client/init.ts index c60b25359b..ce12849770 100644 --- a/src/client/init.ts +++ b/src/client/init.ts @@ -63,6 +63,9 @@ import { reloadChannel } from '@/scripts/unison-reload'; console.info(`Misskey v${version}`); +// boot.jsのやつを解除 +window.onerror = null; + if (_DEV_) { console.warn('Development mode!!!'); diff --git a/src/client/ui/chat/header-clock.vue b/src/client/ui/chat/header-clock.vue index 65573d460b..3488289c21 100644 --- a/src/client/ui/chat/header-clock.vue +++ b/src/client/ui/chat/header-clock.vue @@ -1,12 +1,15 @@ <template> -<div class="_monospace"> - <span> +<div class="acemodlh _monospace"> + <div> + <span v-text="y"></span>/<span v-text="m"></span>/<span v-text="d"></span> + </div> + <div> <span v-text="hh"></span> <span :style="{ visibility: showColon ? 'visible' : 'hidden' }">:</span> <span v-text="mm"></span> <span :style="{ visibility: showColon ? 'visible' : 'hidden' }">:</span> <span v-text="ss"></span> - </span> + </div> </div> </template> @@ -18,6 +21,9 @@ export default defineComponent({ data() { return { clock: null, + y: null, + m: null, + d: null, hh: null, mm: null, ss: null, @@ -34,6 +40,9 @@ export default defineComponent({ methods: { tick() { const now = new Date(); + this.y = now.getFullYear().toString(); + this.m = (now.getMonth() + 1).toString().padStart(2, '0'); + this.d = now.getDate().toString().padStart(2, '0'); this.hh = now.getHours().toString().padStart(2, '0'); this.mm = now.getMinutes().toString().padStart(2, '0'); this.ss = now.getSeconds().toString().padStart(2, '0'); @@ -42,3 +51,12 @@ export default defineComponent({ } }); </script> + +<style lang="scss" scoped> +.acemodlh { + opacity: 0.7; + font-size: 0.85em; + line-height: 1em; + text-align: center; +} +</style> diff --git a/src/client/ui/chat/note.vue b/src/client/ui/chat/note.vue index 315f5c91e3..9312b99d27 100644 --- a/src/client/ui/chat/note.vue +++ b/src/client/ui/chat/note.vue @@ -1091,6 +1091,7 @@ export default defineComponent({ > .poll { font-size: 80%; + max-width: 500px; } > .renote { diff --git a/src/client/ui/chat/notes.vue b/src/client/ui/chat/notes.vue index fb9f8fe260..3a169cc20a 100644 --- a/src/client/ui/chat/notes.vue +++ b/src/client/ui/chat/notes.vue @@ -8,7 +8,7 @@ <MkError v-if="error" @retry="init()"/> <div v-show="more && reversed" style="margin-bottom: var(--margin);"> - <MkButton class="_buttonPrimary" style="margin: 0 auto;" @click="fetchMore" :disabled="moreFetching" :style="{ cursor: moreFetching ? 'wait' : 'pointer' }"> + <MkButton style="margin: 0 auto;" @click="fetchMore" :disabled="moreFetching" :style="{ cursor: moreFetching ? 'wait' : 'pointer' }"> <template v-if="!moreFetching">{{ $ts.loadMore }}</template> <template v-if="moreFetching"><MkLoading inline/></template> </MkButton> @@ -19,7 +19,7 @@ </XList> <div v-show="more && !reversed" style="margin-top: var(--margin);"> - <MkButton class="_buttonPrimary" style="margin: 0 auto;" v-appear="$store.state.enableInfiniteScroll ? fetchMore : null" @click="fetchMore" :disabled="moreFetching" :style="{ cursor: moreFetching ? 'wait' : 'pointer' }"> + <MkButton style="margin: 0 auto;" v-appear="$store.state.enableInfiniteScroll ? fetchMore : null" @click="fetchMore" :disabled="moreFetching" :style="{ cursor: moreFetching ? 'wait' : 'pointer' }"> <template v-if="!moreFetching">{{ $ts.loadMore }}</template> <template v-if="moreFetching"><MkLoading inline/></template> </MkButton> |