mviz 1.7.0-pre.0 → 1.7.0-pre.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli.js +4 -2
- package/dist/layout/templates.js +2 -2
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -222,9 +222,11 @@ async function main() {
|
|
|
222
222
|
}
|
|
223
223
|
}
|
|
224
224
|
else if (outputFile) {
|
|
225
|
-
// Write to file and print success message
|
|
225
|
+
// Write to file and print success message. Goes to stderr so the
|
|
226
|
+
// message doesn't corrupt captured output when callers pipe through
|
|
227
|
+
// `-o /dev/stdout` for inline-rendering workflows (issue #247, #275).
|
|
226
228
|
writeFileSync(resolve(outputFile), html);
|
|
227
|
-
console.
|
|
229
|
+
console.error(`✓ Created ${outputFile}`);
|
|
228
230
|
}
|
|
229
231
|
else {
|
|
230
232
|
// No -o flag: require it unless piping
|
package/dist/layout/templates.js
CHANGED
|
@@ -56,7 +56,7 @@ export function generateDashboardCss(customTheme, orientation = 'portrait', frag
|
|
|
56
56
|
|
|
57
57
|
html, body {
|
|
58
58
|
width: 100%; min-height: 100%;
|
|
59
|
-
background-color: var(--bg);
|
|
59
|
+
${fragment ? '' : 'background-color: var(--bg);'}
|
|
60
60
|
font-family: var(--font-family);
|
|
61
61
|
color: var(--text);
|
|
62
62
|
font-size: 12px;
|
|
@@ -167,7 +167,7 @@ export function generateDashboardCss(customTheme, orientation = 'portrait', frag
|
|
|
167
167
|
.title-row { break-after: avoid; page-break-after: avoid; }
|
|
168
168
|
}`}
|
|
169
169
|
.grid-item {
|
|
170
|
-
background: var(--bg);
|
|
170
|
+
${fragment ? '' : 'background: var(--bg);'}
|
|
171
171
|
padding: 4px;
|
|
172
172
|
transition: background-color 0.3s;
|
|
173
173
|
}
|