diff options
author | marco <marcoambrosini@pm.me> | 2021-09-13 13:56:55 +0300 |
---|---|---|
committer | marco <marcoambrosini@pm.me> | 2021-10-05 11:37:38 +0300 |
commit | 3eda90ce5cd380bf436f90621b60b8d8e570d6b6 (patch) | |
tree | 36b1a77270ce8056e6b660b9f278303a24e51ffa /src | |
parent | 6a490b95281c9b35db3c21aedc87b71f2cb0604e (diff) |
Update MediaDevicesSelector component
Signed-off-by: marco <marcoambrosini@pm.me>
Diffstat (limited to 'src')
-rw-r--r-- | src/components/MediaDevicesSelector.vue | 32 |
1 files changed, 24 insertions, 8 deletions
diff --git a/src/components/MediaDevicesSelector.vue b/src/components/MediaDevicesSelector.vue index d9ffa8a0b..b4e07f28a 100644 --- a/src/components/MediaDevicesSelector.vue +++ b/src/components/MediaDevicesSelector.vue @@ -20,9 +20,15 @@ <template> <div class="media-devices-selector"> - <h3 class="media-devices-selector__heading" :for="deviceSelectorId"> - {{ deviceSelectorLabel }} - </h3> + <div class="media-devices-selector__icon"> + <Microphone v-if="deviceIcon === 'microphone'" + title="" + :size="16" /> + <Video v-if="deviceIcon === 'camera'" + title="" + :size="16" /> + </div> + <Multiselect :id="deviceSelectorId" v-model="deviceSelectedOption" :options="deviceOptions" @@ -36,6 +42,8 @@ <script> import Multiselect from '@nextcloud/vue/dist/Components/Multiselect' +import Microphone from 'vue-material-design-icons/Microphone.vue' +import Video from 'vue-material-design-icons/Video.vue' export default { @@ -43,6 +51,8 @@ export default { components: { Multiselect, + Microphone, + Video, }, props: { @@ -77,13 +87,13 @@ export default { return 'device-selector-' + this.kind }, - deviceSelectorLabel() { + deviceIcon() { if (this.kind === 'audioinput') { - return t('spreed', 'Microphone') + return 'microphone' } if (this.kind === 'videoinput') { - return t('spreed', 'Camera') + return 'camera' } return null @@ -187,8 +197,14 @@ export default { <style lang="scss" scoped> .media-devices-selector { - margin-top: 28px; - margin-bottom: 8px; + display: flex; + margin: 16px 8px 16px 4px; + &__icon { + display: flex; + justify-content: flex-start; + align-items: center; + width: 36px; + } &__heading { font-weight: bold; } |