@seafile/seafile-editor 1.0.85-beta11 → 1.0.85-beta12

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.
@@ -1,24 +1,28 @@
1
- .longtext-preview-container {
1
+ .sf-long-text-inline-editor-container.preview .longtext-preview-container {
2
2
  width: 100%;
3
3
  height: 100%;
4
+ overflow: hidden;
5
+ border: 1px solid rgba(0, 40, 100, 0.12);
6
+ border-radius: 3px;
7
+ cursor: pointer;
4
8
  padding: 16px;
5
- overflow: auto;
9
+ background-color: #FFF;
6
10
  }
7
11
 
8
- .longtext-preview-container .sf-slate-viewer-scroll-container {
12
+ .sf-long-text-inline-editor-container.preview .longtext-preview-container .sf-slate-viewer-scroll-container {
9
13
  overflow-y: auto;
10
14
  height: fit-content;
11
15
  padding: 0;
12
16
  background: #fff;
13
17
  }
14
18
 
15
- .longtext-preview-container .sf-slate-viewer-article-container {
19
+ .sf-long-text-inline-editor-container.preview .longtext-preview-container .sf-slate-viewer-article-container {
16
20
  height: 100%;
17
21
  width: 100%;
18
22
  margin: 0;
19
23
  }
20
24
 
21
- .longtext-preview-container .sf-slate-viewer-article-container .article {
25
+ .sf-long-text-inline-editor-container.preview .longtext-preview-container .sf-slate-viewer-article-container .article {
22
26
  padding: 0;
23
27
  height: auto;
24
28
  min-height: 100% !important;
@@ -26,6 +30,44 @@
26
30
  color: #212529;
27
31
  }
28
32
 
29
- .longtext-preview-container .article :first-child {
33
+ .sf-long-text-inline-editor-container.preview .longtext-preview-container .article :first-child {
30
34
  margin-top: 0;
31
- }
35
+ }
36
+
37
+ .sf-long-text-inline-editor-container.preview .longtext-preview-container ol,
38
+ .sf-long-text-inline-editor-container.preview .longtext-preview-container ul {
39
+ padding-inline-start: 40px;
40
+ margin-bottom: 1em;
41
+ }
42
+
43
+ .sf-long-text-inline-editor-container.preview .longtext-preview-container ol li a,
44
+ .sf-long-text-inline-editor-container.preview .longtext-preview-container ul li a {
45
+ word-break: break-all;
46
+ }
47
+
48
+ .sf-long-text-inline-editor-container.preview .longtext-preview-container ul.contains-task-list,
49
+ .sf-long-text-inline-editor-container.preview .longtext-preview-container ol.contains-task-list {
50
+ padding-inline-start: 20px;
51
+ }
52
+
53
+ .sf-long-text-inline-editor-container.preview .longtext-preview-container ul li.task-list-item,
54
+ .sf-long-text-inline-editor-container.preview .longtext-preview-container ol li.task-list-item {
55
+ min-height: 20px;
56
+ }
57
+
58
+ .sf-long-text-inline-editor-container.preview .longtext-preview-container li.task-list-item input[type=checkbox] {
59
+ position: absolute;
60
+ left: -1.4em;
61
+ top: .4em;
62
+ display: inline-block;
63
+ }
64
+
65
+ .sf-long-text-inline-editor-container.preview .longtext-preview-container thead tr {
66
+ min-height: 42px;
67
+ }
68
+
69
+ .sf-long-text-inline-editor-container.preview .longtext-preview-container tbody tr {
70
+ font-weight: normal;
71
+ min-height: 42px;
72
+ }
73
+
@@ -1,6 +1,7 @@
1
1
  .sf-long-text-inline-editor-container {
2
2
  width: 100%;
3
3
  height: 100%;
4
+ min-height: 38px;
4
5
  border: 1px solid rgba(0, 40, 100, .12);
5
6
  border-radius: 3px;
6
7
  transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
@@ -37,16 +38,6 @@
37
38
  padding: 16px !important;
38
39
  }
39
40
 
40
- /* preview */
41
- .sf-long-text-inline-editor-container .longtext-preview-container {
42
- padding: 10px;
43
- background-color: #fff;
44
- }
45
-
46
- .sf-long-text-inline-editor-container .sf-slate-editor-content .article > div[role="textbox"] > :first-child {
47
- margin-top: 0 !important;
48
- }
49
-
50
41
  .sf-long-text-inline-editor-container .sf-slate-editor-toolbar .sf-menu-group,
51
42
  .sf-editor-menu-popover .popover-inner .sf-menu-group {
52
43
  padding: 4px 0 4px 8px !important;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seafile/seafile-editor",
3
- "version": "1.0.85beta11",
3
+ "version": "1.0.85beta12",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {