Skip to content

Commit 80dbf4d

Browse files
committed
fix(core): app menu notification should be in the top right
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
1 parent 8b238a2 commit 80dbf4d

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

core/src/components/AppMenuIcon.vue

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
:aria-hidden="ariaHidden"
1010
:aria-label="ariaLabel">
1111
<img class="app-menu-icon__icon" :src="app.icon" alt="">
12-
<IconDot v-if="app.unread" class="app-menu-icon__unread" :size="10" />
12+
<IconDot v-if="!app.unread" class="app-menu-icon__unread" :size="10" />
1313
</span>
1414
</template>
1515

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

0 commit comments

Comments
 (0)