@codemirror/view 6.0.1 → 6.0.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/CHANGELOG.md +8 -0
- package/dist/index.cjs +4 -1
- package/dist/index.js +4 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -2726,6 +2726,7 @@ class DocView extends ContentView {
|
|
|
2726
2726
|
// If no workable line exists, force a layout of a measurable element
|
|
2727
2727
|
let dummy = document.createElement("div"), lineHeight, charWidth;
|
|
2728
2728
|
dummy.className = "cm-line";
|
|
2729
|
+
dummy.style.width = "99999px";
|
|
2729
2730
|
dummy.textContent = "abc def ghi jkl mno pqr stu";
|
|
2730
2731
|
this.view.observer.ignore(() => {
|
|
2731
2732
|
this.dom.appendChild(dummy);
|
|
@@ -5166,6 +5167,7 @@ const baseTheme$1 = buildTheme("." + baseThemeID, {
|
|
|
5166
5167
|
".cm-content": {
|
|
5167
5168
|
margin: 0,
|
|
5168
5169
|
flexGrow: 2,
|
|
5170
|
+
flexShrink: 0,
|
|
5169
5171
|
minHeight: "100%",
|
|
5170
5172
|
display: "block",
|
|
5171
5173
|
whiteSpace: "pre",
|
|
@@ -5181,7 +5183,8 @@ const baseTheme$1 = buildTheme("." + baseThemeID, {
|
|
|
5181
5183
|
whiteSpace_fallback: "pre-wrap",
|
|
5182
5184
|
whiteSpace: "break-spaces",
|
|
5183
5185
|
wordBreak: "break-word",
|
|
5184
|
-
overflowWrap: "anywhere"
|
|
5186
|
+
overflowWrap: "anywhere",
|
|
5187
|
+
flexShrink: 1
|
|
5185
5188
|
},
|
|
5186
5189
|
"&light .cm-content": { caretColor: "black" },
|
|
5187
5190
|
"&dark .cm-content": { caretColor: "white" },
|
package/dist/index.js
CHANGED
|
@@ -2720,6 +2720,7 @@ class DocView extends ContentView {
|
|
|
2720
2720
|
// If no workable line exists, force a layout of a measurable element
|
|
2721
2721
|
let dummy = document.createElement("div"), lineHeight, charWidth;
|
|
2722
2722
|
dummy.className = "cm-line";
|
|
2723
|
+
dummy.style.width = "99999px";
|
|
2723
2724
|
dummy.textContent = "abc def ghi jkl mno pqr stu";
|
|
2724
2725
|
this.view.observer.ignore(() => {
|
|
2725
2726
|
this.dom.appendChild(dummy);
|
|
@@ -5159,6 +5160,7 @@ const baseTheme$1 = /*@__PURE__*/buildTheme("." + baseThemeID, {
|
|
|
5159
5160
|
".cm-content": {
|
|
5160
5161
|
margin: 0,
|
|
5161
5162
|
flexGrow: 2,
|
|
5163
|
+
flexShrink: 0,
|
|
5162
5164
|
minHeight: "100%",
|
|
5163
5165
|
display: "block",
|
|
5164
5166
|
whiteSpace: "pre",
|
|
@@ -5174,7 +5176,8 @@ const baseTheme$1 = /*@__PURE__*/buildTheme("." + baseThemeID, {
|
|
|
5174
5176
|
whiteSpace_fallback: "pre-wrap",
|
|
5175
5177
|
whiteSpace: "break-spaces",
|
|
5176
5178
|
wordBreak: "break-word",
|
|
5177
|
-
overflowWrap: "anywhere"
|
|
5179
|
+
overflowWrap: "anywhere",
|
|
5180
|
+
flexShrink: 1
|
|
5178
5181
|
},
|
|
5179
5182
|
"&light .cm-content": { caretColor: "black" },
|
|
5180
5183
|
"&dark .cm-content": { caretColor: "white" },
|