Skip to content

Commit

Permalink
Merge branch 'master' into calls
Browse files Browse the repository at this point in the history
  • Loading branch information
nkonev committed Jan 10, 2024
2 parents 1745559 + d435688 commit b1eb0a5
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 11 deletions.
5 changes: 5 additions & 0 deletions frontend/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -721,6 +721,11 @@ export default {
<style lang="scss">
@use './styles/settings';
// removes extraneous scroll at right side of the screen on Chrome
html {
overflow-y: unset !important;
}
.search-icon {
opacity: settings.$list-item-icon-opacity;
}
Expand Down
5 changes: 5 additions & 0 deletions frontend/src/BlogApp.vue
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,11 @@ export default {
<style lang="stylus">
@import "constants.styl"
// removes extraneous scroll at right side of the screen on Chrome
html {
overflow-y: unset !important;
}
.colored-link {
color: $linkColor;
text-decoration none
Expand Down
12 changes: 8 additions & 4 deletions frontend/src/ChatVideo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,11 @@ export default {
app.use(vuetify);
app.use(pinia);
const containerEl = document.createElement("div");
containerEl.className = 'video-container-wrapper';
if (this.videoIsOnTop) {
containerEl.className = 'video-component-wrapper-position-top';
} else {
containerEl.className = 'video-component-wrapper-position-side';
}
if (position == first) {
this.insertChildAtIndex(this.videoContainerDiv, containerEl, 0);
Expand Down Expand Up @@ -365,9 +369,9 @@ export default {
},
getOnScreenPosition(publication) {
if (publication.source == 'screen_share') {
return second
return first
}
return first
return second
},
refreshLocalMicrophoneAppBarButtons() {
const onlyOneLocalComponentWithAudio = this.onlyOneLocalTrackWithMicrophone(this.room.localParticipant.identity);
Expand Down Expand Up @@ -596,7 +600,7 @@ export default {
</style>

<style lang="stylus">
.video-container-wrapper {
.video-component-wrapper-position-top {
display contents
}
Expand Down
21 changes: 14 additions & 7 deletions frontend/src/ChatView.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<splitpanes class="default-theme" :dbl-click-splitter="false" :style="heightWithoutAppBar">
<pane size="25" v-if="!isMobile()">
<pane size="25" v-if="!isMobile() && !isVideoRoute()">
<ChatList :embedded="true"/>
</pane>
<pane>
Expand All @@ -11,7 +11,7 @@
<ChatVideo :chatDto="chatDto" :videoIsOnTop="videoIsOnTop()" />
</pane>

<pane style="width: 100%" :class="isMobile() ? 'message-pane-mobile' : ''" :size="messageListSize">
<pane style="width: 100%" :class="messageListPaneClass()" :size="messageListSize">
<v-tooltip
v-if="broadcastMessage"
:model-value="showTooltip"
Expand All @@ -21,7 +21,7 @@
<span v-html="broadcastMessage"></span>
</v-tooltip>

<div v-if="pinnedPromoted" :key="pinnedPromotedKey" :class="!isMobile() ? 'pinned-promoted' : ['pinned-promoted', 'pinned-promoted-mobile']" :title="$vuetify.locale.t('$vuetify.pinned_message')">
<div v-if="pinnedPromoted" :key="pinnedPromotedKey" class="pinned-promoted" :title="$vuetify.locale.t('$vuetify.pinned_message')">
<v-alert
closable
color="red-lighten-4"
Expand Down Expand Up @@ -506,6 +506,14 @@ export default {
})
}
},
messageListPaneClass() {
const classes = [];
classes.push('message-pane');
if (this.isMobile()) {
classes.push('message-pane-mobile');
}
return classes;
},
},
watch: {
'$route': {
Expand Down Expand Up @@ -602,12 +610,11 @@ export default {
@import "pinned.styl"
.pinned-promoted {
position: fixed
position: absolute
z-index: 4;
margin-right: 284px;
}
.pinned-promoted-mobile {
margin-right: unset;
.message-pane {
position: relative
}
.message-pane-mobile {
align-items: unset;
Expand Down

0 comments on commit b1eb0a5

Please sign in to comment.