Skip to content

Commit 554fa25

Browse files
committed
Refactor css for tooltip
Signed-off-by: Sampurna Pyne <sampurnapyne1710@gmail.com> Refactor css for tooltip Signed-off-by: Sampurna Pyne <sampurnapyne1710@gmail.com>
1 parent 11da055 commit 554fa25

2 files changed

Lines changed: 11 additions & 10 deletions

File tree

vulnerabilities/templates/advisory_detail.html

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -533,23 +533,14 @@
533533
</button>
534534
</div>
535535

536-
<style>
537-
.bb-tooltip-container {
538-
min-width: 220px !important;
539-
}
540-
.bb-tooltip th, .bb-tooltip td {
541-
white-space: nowrap !important;
542-
}
543-
</style>
544-
545536
<div id="epss-chart-wrap" style="display:none;">
546537
<div class="has-text-weight-bold tab-nested-div ml-1 mb-3">
547538
30-Day Trend
548539
</div>
549540
<div id="epss-chart" style="width:100%; height:260px;"></div>
550541
</div>
551542

552-
<div id="epss-history-table-wrap" {% if not is_epss_tab_active %}style="display:none; margin-top:2rem;"{% else %}style="margin-top:2rem;"{% endif %}>
543+
<div id="epss-history-table-wrap" class="mt-5" {% if not is_epss_tab_active %}style="display:none;"{% endif %}>
553544
<div class="has-text-weight-bold tab-nested-div ml-1 mb-3">
554545
EPSS History Table
555546
</div>

vulnerablecode/static/css/custom.css

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -655,3 +655,13 @@ ul.fixed_by_bullet li li li {
655655
box-shadow: none;
656656
}
657657
}
658+
659+
/* Tooltip styles for EPSS charts */
660+
.bb-tooltip-container {
661+
min-width: 220px !important;
662+
}
663+
664+
.bb-tooltip th,
665+
.bb-tooltip td {
666+
white-space: nowrap !important;
667+
}

0 commit comments

Comments
 (0)