summaryrefslogtreecommitdiff
path: root/src/client/components
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2020-02-20 02:40:53 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2020-02-20 02:40:53 +0900
commite7205d9cc286454f0a939e28a578c70e42cc9988 (patch)
tree5ab498f814ef044312149798c1caddde42c80399 /src/client/components
parentmedia-listのgridの高さがsub-note-detailsのdetailsの中だと287pxに... (diff)
downloadmisskey-e7205d9cc286454f0a939e28a578c70e42cc9988.tar.gz
misskey-e7205d9cc286454f0a939e28a578c70e42cc9988.tar.bz2
misskey-e7205d9cc286454f0a939e28a578c70e42cc9988.zip
サウンド設定など
Diffstat (limited to 'src/client/components')
-rw-r--r--src/client/components/timeline.vue11
-rw-r--r--src/client/components/ui/select.vue3
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: '';