Skip to content

Commit

Permalink
fix(core): app menu notification should be in the top right
Browse files Browse the repository at this point in the history
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
  • Loading branch information
skjnldsv committed Aug 1, 2024
1 parent 8b238a2 commit 80dbf4d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions core/src/components/AppMenuIcon.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
:aria-hidden="ariaHidden"
:aria-label="ariaLabel">
<img class="app-menu-icon__icon" :src="app.icon" alt="">
<IconDot v-if="app.unread" class="app-menu-icon__unread" :size="10" />
<IconDot v-if="!app.unread" class="app-menu-icon__unread" :size="10" />
</span>
</template>

Expand Down Expand Up @@ -56,8 +56,9 @@ $unread-indicator-size: 10px;
&__unread {
color: var(--color-error);
position: absolute;
inset-block-end: calc($unread-indicator-size / -2.5);
inset-inline-end: calc($unread-indicator-size / -2.5);
// Align the dot to the top right corner of the icon
inset-block-end: calc($icon-size + ($unread-indicator-size / -2));
inset-inline-end: calc($unread-indicator-size / -2);
transition: all 0.1s ease-in-out;
}
}
Expand Down

0 comments on commit 80dbf4d

Please sign in to comment.