Skip to content

Commit e1dd885

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 a178cbb commit e1dd885

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
@@ -513,23 +513,14 @@
513513
</button>
514514
</div>
515515

516-
<style>
517-
.bb-tooltip-container {
518-
min-width: 220px !important;
519-
}
520-
.bb-tooltip th, .bb-tooltip td {
521-
white-space: nowrap !important;
522-
}
523-
</style>
524-
525516
<div id="epss-chart-wrap" style="display:none;">
526517
<div class="has-text-weight-bold tab-nested-div ml-1 mb-3">
527518
30-Day Trend
528519
</div>
529520
<div id="epss-chart" style="width:100%; height:260px;"></div>
530521
</div>
531522

532-
<div id="epss-history-table-wrap" {% if not is_epss_tab_active %}style="display:none; margin-top:2rem;"{% else %}style="margin-top:2rem;"{% endif %}>
523+
<div id="epss-history-table-wrap" class="mt-5" {% if not is_epss_tab_active %}style="display:none;"{% endif %}>
533524
<div class="has-text-weight-bold tab-nested-div ml-1 mb-3">
534525
EPSS History Table
535526
</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)