Skip to content
This repository has been archived by the owner on Jan 31, 2024. It is now read-only.

Fix notification indicator #126

Merged
merged 2 commits into from
Nov 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/frontend/src/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -188,10 +188,10 @@ hr {
font-weight: 700;
background: var(--indicator);
height: 1.5em;
min-width: 1.5em;
min-width: 1em;
align-items: center;
justify-content: center;
border-radius: 99rem;
border-radius: var(--radius-ellipse);
padding: 0.3em 0.5em;
}

Expand Down
6 changes: 3 additions & 3 deletions packages/frontend/src/ui/_common_/navbar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ SPDX-License-Identifier: AGPL-3.0-only
v-on="navbarItemDef[item].action ? { click: navbarItemDef[item].action } : {}"
>
<i class="ti-fw" :class="[$style.itemIcon, navbarItemDef[item].icon]"></i><span :class="$style.itemText">{{ navbarItemDef[item].title }}</span>
<span v-if="navbarItemDef[item].indicated" :class="$style.itemIndicator">
<span v-if="navbarItemDef[item].indicated" :class="[$style.itemIndicator, { [$style.hasItemIndicateValueIcon]: navbarItemDef[item].indicateValue }]">
<span v-if="navbarItemDef[item].indicateValue" class="_indicateCounter" :class="$style.itemIndicateValueIcon">{{ navbarItemDef[item].indicateValue }}</span>
<i v-else class="_indicatorCircle"></i>
</span>
Expand Down Expand Up @@ -311,12 +311,12 @@ function more(ev: MouseEvent) {
.itemIndicator {
position: absolute;
top: 0;
right: 20px;
left: 20px;
color: var(--navIndicator);
font-size: 8px;
animation: blink 1s infinite;

&:has(.itemIndicateValueIcon) {
&.hasItemIndicateValueIcon {
animation: none;
left: auto;
right: 40px;
Expand Down
Loading