Skip to content

Commit

Permalink
🐛 fix Vanessa219#276
Browse files Browse the repository at this point in the history
  • Loading branch information
Vanessa219 authored and stevapple committed Apr 8, 2020
1 parent 7bbd00d commit f9d165c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@

### v3.0.12 / 2020-04-0x

* [276](https://github.com/Vanessa219/vditor/issues/276) 当设置编辑器宽度后,模式切换导致样式错误 `修复缺陷`

### v3.0.11 / 2020-04-05

* [266](https://github.com/Vanessa219/vditor/issues/266) linkToImgUrl 图片重复上传 `修复缺陷`
Expand Down
2 changes: 1 addition & 1 deletion demo/static.html
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
<meta property="og:image" content="https://cdn.jsdelivr.net/npm/vditor/dist/images/logo.png"/>
<meta name="twitter:image" content="https://cdn.jsdelivr.net/npm/vditor/dist/images/logo.png"/>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/vditor@latest/dist/index.css"/>
<script src="https://cdn.jsdelivr.net/npm/[email protected].7/dist/index.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected].11/dist/index.min.js"></script>
</head>
<body>
<h2><a href="https://hacpai.com/article/1549638745630?r=Vanessa" target="_blank">Doc</a></h2>
Expand Down
3 changes: 3 additions & 0 deletions src/ts/toolbar/Fullscreen.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import contractSVG from "../../assets/icons/contract.svg";
import fullscreenSVG from "../../assets/icons/fullscreen.svg";
import {setPadding} from "../ui/initUI";
import {getEventName} from "../util/compatibility";
import {MenuItem} from "./MenuItem";

Expand Down Expand Up @@ -40,6 +41,8 @@ export class Fullscreen extends MenuItem {
if (menuItem.click) {
menuItem.click(vditor.element.classList.contains("vditor--fullscreen"));
}

setPadding(vditor);
});
}
}

0 comments on commit f9d165c

Please sign in to comment.