Software details UI: Fix horizontal scroll off viewport (#6811)

This commit is contained in:
RachelElysia 2022-07-22 14:03:06 -04:00 committed by GitHub
parent 99ae9c8a9e
commit 3915a5294b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 14 additions and 2 deletions

View file

@ -0,0 +1 @@
* Use responsive design to prevent tooltip from horizontally overflowing off viewport

View file

@ -146,7 +146,7 @@ const generateVulnTableHeaders = (isPremiumTier: boolean): IDataColumn[] => {
const titleWithToolTip = (
<TooltipWrapper
tipContent={`
The vulnerability has been actively exploited in the wild. This data is reported by<br />
The vulnerability has been actively exploited in the wild. This data is reported by
the Cybersecurity and Infrustructure Security Agency (CISA).
`}
>

View file

@ -23,7 +23,8 @@
.section--vulnerabilities {
.component__tooltip-wrapper__tip-text {
max-width: none;
max-width: $col-md;
white-space: normal;
}
.data-table-block {
@ -38,6 +39,15 @@
.cvss_score__header {
width: $col-sm;
}
@media (max-width: $tooltip-break-1000) {
.cisa_known_exploit__header {
.component__tooltip-wrapper__tip-text {
max-width: 200px; // Prevents horizontal scrolling off viewport
white-space: normal;
}
}
}
}
tr {

View file

@ -2,3 +2,4 @@ $break-1600: 1600px;
$break-1400: 1400px;
$break-990: 990px;
$break-768: 768px;
$tooltip-break-1000: 1000px; // Prevents horizontal scrolling off viewport