Skip to content

Commit

Permalink
fix: remove margin gap from top bar for guests
Browse files Browse the repository at this point in the history
- same logic that is used for showing LeftSidebar

Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
  • Loading branch information
Antreesy committed Oct 24, 2024
1 parent f7b6bed commit 18b180e
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions src/components/TopBar/TopBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
-->

<template>
<div class="top-bar" :class="{ 'in-call': isInCall }">
<div class="top-bar" :class="{ 'in-call': isInCall, 'top-bar--authorised': getUserId }">
<ConversationIcon :key="conversation.token"
class="conversation-icon"
:offline="isPeerInactive"
Expand Down Expand Up @@ -307,6 +307,10 @@ export default {
hasReactionSupport() {
return this.isInCall && this.supportedReactions?.length > 0
},

getUserId() {
return this.$store.getters.getUserId()
},
},

watch: {
Expand Down Expand Up @@ -461,10 +465,12 @@ export default {
color: var(--color-primary-element);
}
}
}

.conversation-icon {
margin-left: 48px;
&--authorised {
.conversation-icon {
margin-left: calc(var(--default-clickable-area) + var(--default-grid-baseline));
}
}
}

.conversation-header {
Expand Down

0 comments on commit 18b180e

Please sign in to comment.