Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions public/components/views/warnings/warnings.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ export class WarningsView extends LitElement {

:host-context(body.dark) {
--bg: var(--dark-theme-gray);

color: rgb(255 255 255 / 87%);
}

Expand Down Expand Up @@ -160,7 +160,7 @@ export class WarningsView extends LitElement {
}

.warnings-subtitle {
font-size: 13px;
font-size: 16px;
color: #7a7595;
margin: 0 0 16px;
}
Expand All @@ -179,7 +179,7 @@ export class WarningsView extends LitElement {
display: flex;
align-items: center;
gap: 5px;
font-size: 12px;
font-size: 15px;
font-weight: 600;
padding: 3px 10px;
border-radius: 20px;
Expand Down Expand Up @@ -207,7 +207,7 @@ export class WarningsView extends LitElement {
}

.severity-section h2 {
font-size: 11px;
font-size: 14px;
font-weight: 700;
letter-spacing: 1px;
text-transform: uppercase;
Expand Down Expand Up @@ -250,14 +250,14 @@ export class WarningsView extends LitElement {
}

.kind-name {
font-size: 14px;
font-size: 16px;
font-weight: 600;
flex: 1;
font-family: mononoki, monospace;
}

.severity-badge {
font-size: 10px;
font-size: 13px;
font-weight: 700;
padding: 2px 7px;
border-radius: 4px;
Expand All @@ -267,7 +267,7 @@ export class WarningsView extends LitElement {
}

.docs-link {
font-size: 11px;
font-size: 14px;
color: #7c6fff;
text-decoration: none;
opacity: 0.8;
Expand All @@ -282,7 +282,7 @@ export class WarningsView extends LitElement {
:host-context(body.dark) .docs-link { color: #a394ff; }

.kind-card--meta {
font-size: 11px;
font-size: 14px;
color: #7a7595;
padding: 0 16px 10px;
}
Expand Down Expand Up @@ -318,7 +318,7 @@ export class WarningsView extends LitElement {
}

.pkg-name {
font-size: 12px;
font-size: 16px;
font-family: mononoki, monospace;
flex: 1;
}
Expand All @@ -332,7 +332,7 @@ export class WarningsView extends LitElement {
}

.pkg-count {
font-size: 11px;
font-size: 14px;
font-weight: 600;
color: #7a7595;
background: rgb(0 0 0 / 5%);
Expand Down Expand Up @@ -373,7 +373,7 @@ export class WarningsView extends LitElement {
return;
}

window.dispatchEvent(new CustomEvent(EVENTS.TREE_NODE_CLICK, {
window.dispatchEvent(new CustomEvent(EVENTS.WARNINGS_PACKAGE_CLICK, {
detail: { nodeId }
}));
}
Expand Down
14 changes: 14 additions & 0 deletions public/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,20 @@ document.addEventListener("DOMContentLoaded", async() => {
}
});

window.addEventListener(EVENTS.WARNINGS_PACKAGE_CLICK, (event) => {
const { nodeId } = event.detail;
const node = secureDataSet.linker.get(nodeId);
if (!node) {
return;
}

window.navigation.setNavByName("network--view");
setTimeout(() => {
PackageInfo.ForcedPackageMenu = "warnings";
nsn.focusNodeByNameAndVersion(node.name, node.version);
}, 25);
});

await init();
window.dispatchEvent(
new CustomEvent(EVENTS.SETTINGS_SAVED, {
Expand Down
Loading