Skip to content

Commit 87a3606

Browse files
committed
__applyStyles
1 parent a46ae7b commit 87a3606

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

services/static-webserver/client/source/class/osparc/wrapper/JsonFormatter.js

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -92,17 +92,13 @@ qx.Class.define("osparc.wrapper.JsonFormatter", {
9292
const style = document.createElement("style");
9393
style.id = styleId;
9494
style.innerHTML = `
95-
.osparc-json-formatter-root .json-formatter-row,
96-
.osparc-json-formatter-root .json-formatter-key,
97-
.osparc-json-formatter-root .json-formatter-value {
98-
color: ${color} !important;
99-
font-family: "Manrope", sans-serif !important;
100-
}
101-
.osparc-json-formatter-root .json-formatter-key {
102-
font-size: 13px !important;
95+
.osparc-json-formatter-root * {
96+
color: ${color} !important; /* Use osparc text color */
97+
font-family: "Manrope", sans-serif !important; /* Use osparc font */
98+
font-size: 13px !important; /* Force all fonts to 13px */
10399
}
104100
.osparc-json-formatter-root .json-formatter-constructor-name {
105-
display: none !important;
101+
display: none !important; /* Hide "Object" and "Array(n)" labels */
106102
}
107103
`;
108104
document.head.appendChild(style);

0 commit comments

Comments
 (0)