@uiw/react-codemirror 3.2.8 → 3.2.9

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.
@@ -32,6 +32,7 @@
32
32
  border-right: 1px solid #ddd;
33
33
  background-color: #f7f7f7;
34
34
  white-space: nowrap;
35
+ height: initial !important;
35
36
  }
36
37
  .CodeMirror-linenumber {
37
38
  padding: 0 3px 0 5px;
@@ -158,15 +159,19 @@ div.CodeMirror span.CodeMirror-nonmatchingbracket {color: #a22;}
158
159
  background: white;
159
160
  }
160
161
 
162
+ .CodeMirror-scroll, .CodeMirror-sizer, .CodeMirror-gutter, .CodeMirror-gutters, .CodeMirror-linenumber {
163
+ box-sizing: content-box;
164
+ }
165
+
161
166
  .CodeMirror-scroll {
162
- overflow: scroll !important; /* Things will break if this is overridden */
163
- /* 30px is the magic margin used to hide the element's real scrollbars */
164
- /* See overflow: hidden in .CodeMirror */
165
- margin-bottom: -30px; margin-right: -30px;
166
- padding-bottom: 30px;
167
+ overflow: scroll !important;
168
+ margin-bottom: -50px;
169
+ margin-right: -50px;
170
+ padding-bottom: 50px;
167
171
  height: 100%;
168
- outline: none; /* Prevent dragging from highlighting the element */
172
+ outline: none;
169
173
  position: relative;
174
+ z-index: 0;
170
175
  }
171
176
  .CodeMirror-sizer {
172
177
  position: relative;
@@ -272,7 +277,7 @@ div.CodeMirror span.CodeMirror-nonmatchingbracket {color: #a22;}
272
277
  padding: 0.1px; /* Force widget margins to stay inside of the container */
273
278
  }
274
279
 
275
- .CodeMirror-widget {}
280
+ /* .CodeMirror-widget {} */
276
281
 
277
282
  .CodeMirror-rtl pre { direction: rtl; }
278
283
 
@@ -32,6 +32,7 @@
32
32
  border-right: 1px solid #ddd;
33
33
  background-color: #f7f7f7;
34
34
  white-space: nowrap;
35
+ height: initial !important;
35
36
  }
36
37
  .CodeMirror-linenumber {
37
38
  padding: 0 3px 0 5px;
@@ -158,15 +159,19 @@ div.CodeMirror span.CodeMirror-nonmatchingbracket {color: #a22;}
158
159
  background: white;
159
160
  }
160
161
 
162
+ .CodeMirror-scroll, .CodeMirror-sizer, .CodeMirror-gutter, .CodeMirror-gutters, .CodeMirror-linenumber {
163
+ box-sizing: content-box;
164
+ }
165
+
161
166
  .CodeMirror-scroll {
162
- overflow: scroll !important; /* Things will break if this is overridden */
163
- /* 30px is the magic margin used to hide the element's real scrollbars */
164
- /* See overflow: hidden in .CodeMirror */
165
- margin-bottom: -30px; margin-right: -30px;
166
- padding-bottom: 30px;
167
+ overflow: scroll !important;
168
+ margin-bottom: -50px;
169
+ margin-right: -50px;
170
+ padding-bottom: 50px;
167
171
  height: 100%;
168
- outline: none; /* Prevent dragging from highlighting the element */
172
+ outline: none;
169
173
  position: relative;
174
+ z-index: 0;
170
175
  }
171
176
  .CodeMirror-sizer {
172
177
  position: relative;
@@ -272,7 +277,7 @@ div.CodeMirror span.CodeMirror-nonmatchingbracket {color: #a22;}
272
277
  padding: 0.1px; /* Force widget margins to stay inside of the container */
273
278
  }
274
279
 
275
- .CodeMirror-widget {}
280
+ /* .CodeMirror-widget {} */
276
281
 
277
282
  .CodeMirror-rtl pre { direction: rtl; }
278
283
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uiw/react-codemirror",
3
- "version": "3.2.8",
3
+ "version": "3.2.9",
4
4
  "description": "CodeMirror component for React.",
5
5
  "homepage": "https://uiwjs.github.io/react-codemirror",
6
6
  "main": "lib/index.js",
@@ -42,7 +42,7 @@
42
42
  },
43
43
  "dependencies": {
44
44
  "@babel/runtime": "^7.18.9",
45
- "codemirror": "^5.65.7"
45
+ "codemirror": "^5.65.8"
46
46
  },
47
47
  "eslintConfig": {
48
48
  "extends": [
@@ -63,7 +63,7 @@
63
63
  "kkt": "^7.2.0",
64
64
  "react": "17.0.2",
65
65
  "react-dom": "17.0.2",
66
- "tsbb": "3.3.7"
66
+ "tsbb": "^3.7.7"
67
67
  },
68
68
  "browserslist": {
69
69
  "production": [
@@ -32,6 +32,7 @@
32
32
  border-right: 1px solid #ddd;
33
33
  background-color: #f7f7f7;
34
34
  white-space: nowrap;
35
+ height: initial !important;
35
36
  }
36
37
  .CodeMirror-linenumber {
37
38
  padding: 0 3px 0 5px;
@@ -158,15 +159,19 @@ div.CodeMirror span.CodeMirror-nonmatchingbracket {color: #a22;}
158
159
  background: white;
159
160
  }
160
161
 
162
+ .CodeMirror-scroll, .CodeMirror-sizer, .CodeMirror-gutter, .CodeMirror-gutters, .CodeMirror-linenumber {
163
+ box-sizing: content-box;
164
+ }
165
+
161
166
  .CodeMirror-scroll {
162
- overflow: scroll !important; /* Things will break if this is overridden */
163
- /* 30px is the magic margin used to hide the element's real scrollbars */
164
- /* See overflow: hidden in .CodeMirror */
165
- margin-bottom: -30px; margin-right: -30px;
166
- padding-bottom: 30px;
167
+ overflow: scroll !important;
168
+ margin-bottom: -50px;
169
+ margin-right: -50px;
170
+ padding-bottom: 50px;
167
171
  height: 100%;
168
- outline: none; /* Prevent dragging from highlighting the element */
172
+ outline: none;
169
173
  position: relative;
174
+ z-index: 0;
170
175
  }
171
176
  .CodeMirror-sizer {
172
177
  position: relative;
@@ -272,7 +277,7 @@ div.CodeMirror span.CodeMirror-nonmatchingbracket {color: #a22;}
272
277
  padding: 0.1px; /* Force widget margins to stay inside of the container */
273
278
  }
274
279
 
275
- .CodeMirror-widget {}
280
+ /* .CodeMirror-widget {} */
276
281
 
277
282
  .CodeMirror-rtl pre { direction: rtl; }
278
283