Browse Source

Merge pull request #11769 from nextcloud/fix/noid/conversation-type-in-call

fix(ConversationIcon): force light background color for conversation …
pull/11772/head
Dorra 2 years ago
committed by GitHub
parent
commit
d065a286b5
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 13
      src/components/TopBar/TopBar.vue

13
src/components/TopBar/TopBar.vue

@ -20,7 +20,7 @@
-->
<template>
<div class="top-bar" :data-theme-dark="isInCall">
<div class="top-bar" :style="topBarStyle" :data-theme-dark="isInCall">
<ConversationIcon :key="conversation.token"
class="conversation-icon"
:offline="isPeerInactive"
@ -306,6 +306,12 @@ export default {
hasReactionSupport() {
return this.isInCall && this.supportedReactions?.length > 0
},
topBarStyle() {
return {
'--original-color-main-background': window.getComputedStyle(document.body).getPropertyValue('--color-main-background')
}
},
},
watch: {
@ -465,4 +471,9 @@ export default {
}
}
}
:deep(.conversation-icon__type) {
border-color: var(--original-color-main-background) !important;
background-color: var(--original-color-main-background) !important;
}
</style>
Loading…
Cancel
Save