Skip to content

Commit 3074f16

Browse files
committed
#3077 added scrolling to references. Centralized scrolling css
1 parent d2221b6 commit 3074f16

File tree

4 files changed

+12
-14
lines changed

4 files changed

+12
-14
lines changed

src/assets/style/globals.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -566,6 +566,7 @@ label {
566566
border-bottom: 1px solid lightgray;
567567
overflow-y: scroll;
568568
border-top: 1px solid lightgray;
569+
padding: .75rem
569570
}
570571

571572

src/components/AdpVulnerabilityEnrichment.vue

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -71,12 +71,12 @@
7171
</div>
7272
</div>
7373
</div>
74-
<div id="cve-kevs" v-if="kevs.length > 0 && roleName === 'adp'" class="cve-scroll-border-bottom mt-5">
74+
<div id="cve-kevs" v-if="kevs.length > 0 && roleName === 'adp'" class="mt-5">
7575
<h4 class="title mb-0">KEV <span class="tag">{{ kevs.length }} Total</span></h4>
76-
<div class="cve-learn-more cve-scroll-border-bottom">
76+
<div class="cve-learn-more ">
7777
<router-link to="/CVERecord/UserGuide/#cve-kev" class="cve-learn-more-link">Learn more</router-link>
7878
</div>
79-
<div class="cve-y-scroll mt-3 mb-3">
79+
<div class="cve-y-scroll cve-scroll-box mt-3">
8080
<ul class="mt-1">
8181
<li v-for="kev in kevs" :key="kev.key">
8282
<a :href="kev.reference" target="_blank">{{ kev.reference }}</a><span class="is-italic cve-help-text"> ({{ kev.dateAdded }})</span>
@@ -131,13 +131,13 @@
131131
</div>
132132
</div>
133133
<div v-if="roleName !== 'cveProgram'">
134-
<div id="cve-cwes" v-if="cwes.length > 0" class="cve-scroll-border-bottom mt-5">
134+
<div id="cve-cwes" v-if="cwes.length > 0" class="mt-5">
135135
<h4 class="title mb-0">CWE <span class="tag">{{ cwes.length }} Total</span></h4>
136-
<div class="cve-learn-more cve-scroll-border-bottom mb-5">
136+
<div class="cve-learn-more mb-3">
137137
<router-link to="/CVERecord/UserGuide/#cve-cwe" class="cve-learn-more-link">Learn more</router-link>
138138
</div>
139-
<div class="cve-y-scroll">
140-
<ul class="mt-0 mb-3">
139+
<div class="cve-y-scroll cve-scroll-box">
140+
<ul class="mt-0 mb-0">
141141
<li v-for="cwe in cwes" :key="cwe.key">
142142
<a v-if="cwe.cweId !== 'CWE ID not provided'" :href="`https://cwe.mitre.org/data/definitions/${cwe.cweNumber}.html`" target="_blank">
143143
<span class="has-text-weight-bold">{{ cwe.cweId }}<span v-if="cwe.description.length > 0">: </span></span>
@@ -461,7 +461,4 @@ export default {
461461
overflow-y: scroll;
462462
}
463463
464-
.cve-scroll-border-bottom {
465-
border-bottom: 1px solid lightgray;
466-
}
467464
</style>

src/components/CveRecordReferences.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
class="mt-5"
44
style="word-break:break-all;"
55
>
6-
<h4 class="title mb-2">References <span class="tag">{{ references.length }} Total</span></h4>
7-
<div class="cve-scroll-box p-5">
8-
<ul>
6+
<h4 class="title mb-3">References <span class="tag">{{ references.length }} Total</span></h4>
7+
<div class="cve-scroll-box">
8+
<ul class="mt-0">
99
<li v-for="(reference, index) in references" :key="`link-${index}`" class="cve-word-wrap">
1010
<span class="icon-text">
1111
<a :href="reference.url" target="_blank">

src/components/ProductStatus.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
<p class="cve-product-status-heading pb-1" >
3434
Versions <span class="tag">{{ versionsCount(product) }} Total</span>
3535
</p>
36-
<div class="cve-scroll-box pt-3">
36+
<div class="cve-scroll-box pt-1">
3737
<div class="column is-12-desktop mb-4">
3838
<div id="cve-version-default-status">
3939
<p v-if="product.defaultStatus" class="cve-help-text is-italic">

0 commit comments

Comments
 (0)