@atri-editor/core 0.5.0 → 0.5.1

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,5 +1,13 @@
1
1
  # @atri-editor/core
2
2
 
3
+ ## 0.5.1
4
+
5
+ ### Patch Changes
6
+
7
+ - cd42814: 修复任务列表勾选框与文字错位
8
+
9
+ 任务项里的正文段落带着 `0.5em` 上下外边距,放进 flex 行后会把文字压到勾选框下面;现在任务项内的段落不再吃外边距,由行高对齐。同一类问题还有表格:宿主页面的正文样式常把 `table` 改成块级元素,从而绕开横向滚动容器与固定列宽,现在表格显式声明 `display: table`。
10
+
3
11
  ## 0.5.0
4
12
 
5
13
  ### Minor Changes
package/dist/style.css CHANGED
@@ -827,6 +827,7 @@
827
827
  height: auto;
828
828
  }
829
829
  .atri-editor-content table {
830
+ display: table;
830
831
  border-collapse: collapse;
831
832
  width: 100%;
832
833
  margin: 0.5em 0;
@@ -882,6 +883,13 @@
882
883
  display: flex;
883
884
  align-items: flex-start;
884
885
  }
886
+ .atri-editor-content ul[data-type=taskList] li > div {
887
+ flex: 1;
888
+ min-width: 0;
889
+ }
890
+ .atri-editor-content ul[data-type=taskList] li > div > p {
891
+ margin: 0;
892
+ }
885
893
  .atri-editor-content ul[data-type=taskList] li label {
886
894
  margin-right: 8px;
887
895
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atri-editor/core",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "description": "Core package for Atri Editor",
5
5
  "keywords": [
6
6
  "editor",