Skip to content
This repository was archived by the owner on Jul 28, 2026. It is now read-only.

Commit 2b6995a

Browse files
committed
fix: show notification badge on SVG icon in normal sidebar mode
1 parent 68b039c commit 2b6995a

2 files changed

Lines changed: 7 additions & 5 deletions

File tree

public/css/style.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1412,8 +1412,8 @@ tbody tr:hover {
14121412

14131413
.notif-badge {
14141414
position: absolute;
1415-
top: 6px;
1416-
right: 8px;
1415+
top: -6px;
1416+
right: -6px;
14171417
min-width: 18px;
14181418
height: 18px;
14191419
border-radius: 99px;

public/js/app.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -641,10 +641,12 @@ async function renderDashboard() {
641641
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><rect x="2" y="2" width="20" height="8" rx="2"/><rect x="2" y="14" width="20" height="8" rx="2"/><circle cx="6" cy="6" r="1" fill="currentColor"/><circle cx="6" cy="18" r="1" fill="currentColor"/></svg>
642642
My Servers
643643
</a>
644-
<a class="nav-item" id="nav-notifications" href="#" style="position:relative">
645-
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9"/><path d="M13.73 21a2 2 0 0 1-3.46 0"/></svg>
644+
<a class="nav-item" id="nav-notifications" href="#">
645+
<span style="position:relative;display:inline-flex">
646+
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9"/><path d="M13.73 21a2 2 0 0 1-3.46 0"/></svg>
647+
<span class="notif-badge" id="notif-badge"></span>
648+
</span>
646649
Notifications
647-
<span class="notif-badge" id="notif-badge"></span>
648650
</a>
649651
<div class="nav-section-label">Actions</div>
650652
<a class="nav-item" data-page="create" href="/create">

0 commit comments

Comments
 (0)