Browse Source

:lipstick: fix #73

Van 6 years ago
parent
commit
fbd2539564
4 changed files with 4 additions and 2 deletions
  1. 1 0
      CHANGELOG.md
  2. 1 1
      package-lock.json
  3. 1 1
      package.json
  4. 1 0
      src/assets/scss/_reset.scss

+ 1 - 0
CHANGELOG.md

@@ -2,6 +2,7 @@
 
 ### v1.5.11 / 2019-07-06
 
+* [73](https://github.com/b3log/vditor/issues/73) iframe 添加 max-width `enhancement`
 * [72](https://github.com/b3log/vditor/issues/72) 当编辑器父元素为 position: fix 时 hit 计算错误 `bug`
 * [71](https://github.com/b3log/vditor/issues/71) new 之前应保证该 id 元素在 html 中已经渲染 `question`
 * [70](https://github.com/b3log/vditor/issues/70) 建议删除CDN和代码中的Dynamic Import `invalid`

+ 1 - 1
package-lock.json

@@ -1,6 +1,6 @@
 {
   "name": "vditor",
-  "version": "1.5.11",
+  "version": "1.5.12",
   "lockfileVersion": 1,
   "requires": true,
   "dependencies": {

+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
   "name": "vditor",
-  "version": "1.5.11",
+  "version": "1.5.12",
   "cdn": "https://cdn.jsdelivr.net/npm",
   "description": "A markdown editor written in TypeScript",
   "author": " Vanessa <[email protected]> (http://vanessa.b3log.org)",

+ 1 - 0
src/assets/scss/_reset.scss

@@ -102,6 +102,7 @@
 
     iframe {
       border: 1px solid $borderColor;
+      max-width: 100%;
     }
 
     table {