diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2020-02-20 02:40:53 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2020-02-20 02:40:53 +0900 |
| commit | e7205d9cc286454f0a939e28a578c70e42cc9988 (patch) | |
| tree | 5ab498f814ef044312149798c1caddde42c80399 /src/client/components | |
| parent | media-listのgridの高さがsub-note-detailsのdetailsの中だと287pxに... (diff) | |
| download | misskey-e7205d9cc286454f0a939e28a578c70e42cc9988.tar.gz misskey-e7205d9cc286454f0a939e28a578c70e42cc9988.tar.bz2 misskey-e7205d9cc286454f0a939e28a578c70e42cc9988.zip | |
サウンド設定など
Diffstat (limited to 'src/client/components')
| -rw-r--r-- | src/client/components/timeline.vue | 11 | ||||
| -rw-r--r-- | src/client/components/ui/select.vue | 3 |
2 files changed, 13 insertions, 1 deletions
diff --git a/src/client/components/timeline.vue b/src/client/components/timeline.vue index 407aeb2161..ba367bf23d 100644 --- a/src/client/components/timeline.vue +++ b/src/client/components/timeline.vue @@ -21,6 +21,11 @@ export default Vue.extend({ }, antenna: { required: false + }, + sound: { + type: Boolean, + required: false, + default: false, } }, @@ -46,6 +51,12 @@ export default Vue.extend({ const prepend = note => { (this.$refs.tl as any).prepend(note); + + if (this.sound) { + const audio = new Audio(`/assets/sounds/${this.$store.state.device.sfxNote}.mp3`); + audio.volume = this.$store.state.device.sfxVolume; + audio.play(); + } }; const onUserAdded = () => { diff --git a/src/client/components/ui/select.vue b/src/client/components/ui/select.vue index 3d22b8198e..6266fb5a2d 100644 --- a/src/client/components/ui/select.vue +++ b/src/client/components/ui/select.vue @@ -56,7 +56,7 @@ export default Vue.extend({ } }, filled(): boolean { - return this.v != '' && this.v != null; + return true; } }, mounted() { @@ -100,6 +100,7 @@ export default Vue.extend({ > .input { display: flex; + position: relative; &:before { content: ''; |