Skip to content

Commit 2679f33

Browse files
authored
Publisher CVEs: Scroll to top when swapping pages (#194)
* Scroll to the top when swapping pages * Update manifest checksums
1 parent 17fd4cf commit 2679f33

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

extensions/publisher-cves/manifest.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@
2323
"dist/assets/index-CteWUkOR.css": {
2424
"checksum": "e26ddbd6163e429121aaac82256c8f53"
2525
},
26-
"dist/assets/index-l2VTngKw.js": {
27-
"checksum": "4f068289d30f758c18bd7f9cb05d6d6f"
26+
"dist/assets/index-vlEy0F6m.js": {
27+
"checksum": "da2cb1d917ec752760f9186b7d02d185"
2828
},
2929
"dist/index.html": {
30-
"checksum": "ea3a868abc19067f9de6ba46808ba337"
30+
"checksum": "0fed520b0a89f55e25e1bbce548aa482"
3131
},
3232
"main.py": {
3333
"checksum": "f8385dbd8a8cd24204f1eb6209f8bb30"

extensions/publisher-cves/src/components/ContentCard.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ const vulnerabilityText = computed(() => {
7272
// Handle card click
7373
function handleClick() {
7474
contentStore.currentContentId = props.content.guid;
75+
scrollTo({ top: 0, left: 0, behavior: "instant" });
7576
}
7677
</script>
7778

extensions/publisher-cves/src/components/VulnerabilityChecker.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ function getFixedVersion(vuln: Vulnerability): string | null {
8686
// Go back to content list
8787
function goBack() {
8888
contentStore.currentContentId = undefined;
89+
scrollTo({ top: 0, left: 0, behavior: "instant" });
8990
}
9091
9192
// Find vulnerable packages by comparing package data with vulnerability data

0 commit comments

Comments
 (0)