Skip to content

Commit fd35ce3

Browse files
committed
Add a notice for Network I/O not persisting
1 parent e993c02 commit fd35ce3

File tree

2 files changed

+28
-1
lines changed

2 files changed

+28
-1
lines changed

root/app/www/public/ajax/overview.php

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,15 @@
144144
<p class="text-info" style="font-size: 18px;">Network I/O</p>
145145
<i class="fas fa-wifi ms-auto p-2"></i>
146146
</div>
147-
<p style="font-size: 20px !important; margin: -16px 0 0 0 !important;"><?= byteConversion($network) ?></p>
147+
<p style="font-size: 20px !important; margin: -16px 0 0 0 !important;">
148+
<?= byteConversion($network) ?>
149+
<?php if ($netIOMetric) { ?>
150+
<span class="position-relative">
151+
<i class="fas fa-exclamation-triangle dw-tooltip-icon" style="font-size: 12px !important; transform: translateY(-2px); color: yellow !important;"></i>
152+
<span class="dw-tooltip">This value may not reflect the correct traffic usage due to Docker Engine not persisting</span>
153+
</span>
154+
<?php } ?>
155+
</p>
148156
<p style="font-size: 14px !important; margin: 0 0 10px 0 !important; color: var(--text-500) !important;"><?= $netIOMetric ?? "Network traffic tracked" ?></p>
149157
</div>
150158
<div class="bg-secondary rounded px-2 w-100">

root/app/www/public/css/style.css

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -385,4 +385,23 @@ pre {
385385

386386
.text-uppercase {
387387
text-transform: uppercase !important;
388+
}
389+
390+
.dw-tooltip {
391+
display: none;
392+
position: absolute;
393+
bottom: 100%;
394+
left: 50%;
395+
transform: translateX(-50%);
396+
padding: 5px 10px;
397+
background: #333;
398+
color: #fff;
399+
border-radius: 4px;
400+
font-size: 12px;
401+
white-space: nowrap;
402+
z-index: 1000;
403+
}
404+
405+
.dw-tooltip-icon:hover + .dw-tooltip {
406+
display: block;
388407
}

0 commit comments

Comments
 (0)