critique 0.1.7 → 0.1.8
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/CHANGELOG.md +7 -0
- package/package.json +1 -1
- package/src/ansi-html.ts +2 -4
- package/src/cli.tsx +2 -2
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
package/src/ansi-html.ts
CHANGED
|
@@ -166,16 +166,14 @@ body {
|
|
|
166
166
|
box-sizing: border-box;
|
|
167
167
|
}
|
|
168
168
|
.line {
|
|
169
|
-
white-space: pre
|
|
170
|
-
word-break: break-all;
|
|
169
|
+
white-space: pre;
|
|
171
170
|
display: flex;
|
|
172
|
-
flex-wrap: wrap;
|
|
173
171
|
content-visibility: auto;
|
|
174
172
|
contain-intrinsic-block-size: auto 1lh;
|
|
175
173
|
background-color: ${backgroundColor};
|
|
176
174
|
}
|
|
177
175
|
.line span {
|
|
178
|
-
white-space: pre
|
|
176
|
+
white-space: pre;
|
|
179
177
|
}
|
|
180
178
|
</style>
|
|
181
179
|
</head>
|
package/src/cli.tsx
CHANGED
|
@@ -229,7 +229,7 @@ function DiffView({ diff, view, filetype, themeName }: DiffViewProps) {
|
|
|
229
229
|
filetype={filetype}
|
|
230
230
|
syntaxStyle={syntaxStyle}
|
|
231
231
|
showLineNumbers
|
|
232
|
-
wrapMode="
|
|
232
|
+
wrapMode="wrap"
|
|
233
233
|
addedContentBg={resolvedTheme.diffAddedBg}
|
|
234
234
|
removedContentBg={resolvedTheme.diffRemovedBg}
|
|
235
235
|
contextContentBg={resolvedTheme.backgroundPanel}
|
|
@@ -988,7 +988,7 @@ cli
|
|
|
988
988
|
|
|
989
989
|
// Worker URL for uploading HTML previews
|
|
990
990
|
const WORKER_URL =
|
|
991
|
-
process.env.CRITIQUE_WORKER_URL || "https://
|
|
991
|
+
process.env.CRITIQUE_WORKER_URL || "https://critique.work";
|
|
992
992
|
|
|
993
993
|
cli
|
|
994
994
|
.command("web [ref]", "Generate web preview of diff")
|