critique 0.1.6 → 0.1.7

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 CHANGED
@@ -1,3 +1,8 @@
1
+ # 0.1.7
2
+
3
+ - Web preview:
4
+ - Enable text wrapping for long lines (`pre-wrap`, `word-break: break-all`, `flex-wrap: wrap`)
5
+
1
6
  # 0.1.6
2
7
 
3
8
  - Web preview:
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "critique",
3
3
  "module": "src/diff.tsx",
4
4
  "type": "module",
5
- "version": "0.1.6",
5
+ "version": "0.1.7",
6
6
  "private": false,
7
7
  "bin": "./src/cli.tsx",
8
8
  "scripts": {
package/src/ansi-html.ts CHANGED
@@ -166,14 +166,16 @@ body {
166
166
  box-sizing: border-box;
167
167
  }
168
168
  .line {
169
- white-space: pre;
169
+ white-space: pre-wrap;
170
+ word-break: break-all;
170
171
  display: flex;
172
+ flex-wrap: wrap;
171
173
  content-visibility: auto;
172
174
  contain-intrinsic-block-size: auto 1lh;
173
175
  background-color: ${backgroundColor};
174
176
  }
175
177
  .line span {
176
- white-space: pre;
178
+ white-space: pre-wrap;
177
179
  }
178
180
  </style>
179
181
  </head>