Skip to content

Commit

Permalink
fix activity text centering on chrome
Browse files Browse the repository at this point in the history
  • Loading branch information
ElectronicBlueberry committed Sep 23, 2024
1 parent 5103f43 commit 09e464c
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions client/src/components/ActivityBar/ActivityItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -77,15 +77,13 @@ function onClick(evt: MouseEvent): void {
width: `${Math.round(progressPercentage)}%`,
}" />
</span>
<span class="position-relative">
<div class="nav-icon">
<span v-if="indicator > 0" class="nav-indicator" data-description="activity indicator">
{{ Math.min(indicator, 99) }}
</span>
<FontAwesomeIcon :icon="icon" />
</div>
<TextShort v-if="title" :text="title" class="nav-title" />
</span>
<div class="nav-icon">
<span v-if="indicator > 0" class="nav-indicator" data-description="activity indicator">
{{ Math.min(indicator, 99) }}
</span>
<FontAwesomeIcon :icon="icon" />
</div>
<TextShort v-if="title" :text="title" class="nav-title" />
</b-nav-item>
</template>
<div class="text-center px-2 py-1">
Expand All @@ -106,6 +104,8 @@ function onClick(evt: MouseEvent): void {
@import "theme/blue.scss";
.activity-item {
display: flex;
&:deep(.variant-danger) {
color: $brand-danger;
}
Expand Down

0 comments on commit 09e464c

Please sign in to comment.