TT#71299 Conferencing: Improve the layout for mobile devices

Change-Id: I328dbc3375ad67bac94242697b90663e3f5fc42e
changes/18/35918/9
Carlo Venusino 6 years ago
parent 037b1fa219
commit c2815c7ed1

@ -221,4 +221,9 @@
margin-left -12px margin-left -12px
video.csc-media-video video.csc-media-video
position: absolute; position: absolute;
@media (max-width: $breakpoint-sm)
top 0px !important
width 100%
height 100%
object-fit cover
</style> </style>

@ -370,6 +370,11 @@
width 130px width 130px
height 45px height 45px
padding 10px padding 10px
@media (max-width: $breakpoint-sm)
font-size 16px
width 100px
height 36px
padding 8px
#csc-conf-main-media #csc-conf-main-media
position absolute position absolute
top 0 top 0
@ -379,6 +384,7 @@
z-index 1 z-index 1
background-color black background-color black
font-size 0 font-size 0
#csc-conf-header #csc-conf-header
z-index 2 z-index 2
top 0 top 0

@ -89,7 +89,7 @@
}, },
computed: { computed: {
contentClasses() { contentClasses() {
let classes = ['col', 'col-4', 'text-center']; let classes = ['col', 'col-md-4', 'text-center'];
if(this.isCameraEnabled) { if(this.isCameraEnabled) {
classes.push('csc-camera-background'); classes.push('csc-camera-background');
} }

@ -94,7 +94,10 @@
display inline-block display inline-block
height calc(100vh - 150px) height calc(100vh - 150px)
overflow hidden overflow hidden
@media (max-width: $breakpoint-sm)
font-size 73px
left: -18px;
top: -2px;
#csc-conf-remote-participants-cont #csc-conf-remote-participants-cont
overflow auto overflow auto
height 100% height 100%

@ -1,6 +1,7 @@
<template> <template>
<q-card <q-card
class="csc-conf-participant-cont" class="csc-conf-participant-cont"
v-touch-hold="showMenu"
> >
<div class="csc-conf-audio-icons-cont"> <div class="csc-conf-audio-icons-cont">
<q-icon <q-icon
@ -60,12 +61,16 @@
import _ from 'lodash'; import _ from 'lodash';
import { QIcon, QCard, QCardMedia, QCardTitle, QPopover, QList, QItem, QItemMain } from 'quasar-framework' import { QIcon, QCard, QCardMedia, QCardTitle, QPopover, QList, QItem, QItemMain } from 'quasar-framework'
import CscMedia from "../../CscMedia"; import CscMedia from "../../CscMedia";
import { TouchHold } from 'quasar';
import { import {
mapGetters, mapGetters,
mapState mapState
} from 'vuex' } from 'vuex'
export default { export default {
name: 'csc-conference-remote-participant', name: 'csc-conference-remote-participant',
directives: {
TouchHold
},
components: { components: {
QIcon, QIcon,
QCard, QCard,
@ -119,15 +124,20 @@
} }
}, },
toggleAudio(){ toggleAudio(){
this.$refs.popover.close(); this.$refs.popover.close(()=>{
this.isAudioMuted this.isAudioMuted
? this.$store.commit('conference/removeMutedState', this.remoteParticipant.id) ? this.$store.commit('conference/removeMutedState', this.remoteParticipant.id)
: this.$store.commit('conference/addMutedState', this.remoteParticipant.id) : this.$store.commit('conference/addMutedState', this.remoteParticipant.id)
});
}, },
audioLabel() { audioLabel() {
return this.isAudioMuted return this.isAudioMuted
? this.$t('conferencing.unmuteMicrophone') ? this.$t('conferencing.unmuteMicrophone')
: this.$t('conferencing.muteMicrophone'); : this.$t('conferencing.muteMicrophone');
},
showMenu(){
this.$refs.popover.open();
} }
}, },
watch: { watch: {
@ -151,13 +161,27 @@
position absolute position absolute
padding-top 5px padding-top 5px
z-index 10 z-index 10
@media (max-width: $breakpoint-sm)
font-size 0px
.csc-conf-toggle-audio-icon .csc-conf-toggle-audio-icon
@extend .csc-conf-toggle-audio-menu-icon @extend .csc-conf-toggle-audio-menu-icon
right 5px right 5px
cursor default cursor default
@media (max-width: $breakpoint-sm)
font-size 10px
right 2px
top -3px
.csc-conf-toggle-audio-popover .csc-conf-toggle-audio-popover
width 115px width 115px
@media (max-width: $breakpoint-sm)
width 90px
.csc-conf-toggle-audio-menu-item .csc-conf-toggle-audio-menu-item
@media (max-width: $breakpoint-sm)
height: 32px !important;
padding-top: 0px !important;
.q-item .q-item
font-size 14px font-size 14px
@media (max-width: $breakpoint-sm)
font-size 12px
padding-top 0px
</style> </style>

@ -260,6 +260,10 @@ input.q-input-target
left -22px left -22px
right 0 right 0
margin auto margin auto
@media (max-width: $breakpoint-sm)
font-size 60px
left -16px
top -30px
.csc-conf-selected-avatar .csc-conf-selected-avatar
width: 220px; width: 220px;
height: 220px; height: 220px;
@ -279,6 +283,10 @@ input.q-input-target
height 115px height 115px
background $conf-participant-box-color background $conf-participant-box-color
cursor pointer cursor pointer
@media (max-width: $breakpoint-sm)
width 50px
height 50px
margin-bottom 10px
.csc-conf-participants-item-title .csc-conf-participants-item-title
position relative position relative
background white background white
@ -286,6 +294,8 @@ input.q-input-target
text-align center text-align center
padding 0 padding 0
background $conf-participant-box-color background $conf-participant-box-color
@media (max-width: $breakpoint-sm)
display none
.q-card-title .q-card-title
color $primary color $primary
font-size 12px font-size 12px
@ -294,4 +304,7 @@ input.q-input-target
height 100% !important height 100% !important
width 100% !important width 100% !important
video video
height: 100%; height 100%
position relative
left 50% !important
transform translateX(-50%)

Loading…
Cancel
Save