@seafile/comment-editor 1.0.3 → 1.0.5
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/dist/basic-sdk/extension/plugins/image/dialogs/image-previewer.js +2 -4
- package/dist/basic-sdk/extension/plugins/image/hover-menu/index.css +2 -2
- package/dist/basic-sdk/extension/plugins/link/hover/index.css +2 -2
- package/package.json +1 -1
- package/public/locales/en/comment-editor.json +2 -2
- package/public/locales/zh-CN/comment-editor.json +2 -2
- package/public/locales/zh_CN/comment-editor.json +2 -2
|
@@ -9,7 +9,6 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/es
|
|
|
9
9
|
var _react = _interopRequireDefault(require("react"));
|
|
10
10
|
var _reactI18next = require("react-i18next");
|
|
11
11
|
var _reactImageLightbox = _interopRequireDefault(require("@seafile/react-image-lightbox"));
|
|
12
|
-
var _commonUtils = require("../../../../utils/common-utils");
|
|
13
12
|
var _helpers = require("../helpers");
|
|
14
13
|
require("@seafile/react-image-lightbox/style.css");
|
|
15
14
|
class ImagePreviewer extends _react.default.Component {
|
|
@@ -63,7 +62,6 @@ class ImagePreviewer extends _react.default.Component {
|
|
|
63
62
|
} = this.props;
|
|
64
63
|
const imageItemsLength = this.images.length;
|
|
65
64
|
const mainSrc = this.images[imageIndex] || '';
|
|
66
|
-
const shortcutMain = (0, _commonUtils.isMac)() ? '⌘' : 'Ctrl';
|
|
67
65
|
let imageTitle = '';
|
|
68
66
|
try {
|
|
69
67
|
imageTitle = mainSrc ? decodeURI(mainSrc.slice(mainSrc.lastIndexOf('/') + 1)) : '';
|
|
@@ -94,8 +92,8 @@ class ImagePreviewer extends _react.default.Component {
|
|
|
94
92
|
reactModalProps: {
|
|
95
93
|
shouldReturnFocusAfterClose: false
|
|
96
94
|
},
|
|
97
|
-
zoomInTip: t('
|
|
98
|
-
zoomOutTip: t('
|
|
95
|
+
zoomInTip: t('Zoom_in'),
|
|
96
|
+
zoomOutTip: t('Zoom_out')
|
|
99
97
|
});
|
|
100
98
|
}
|
|
101
99
|
}
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
.sdoc-image-hover-menu-container .hover-menu-container .op-item {
|
|
29
29
|
position: relative;
|
|
30
30
|
font-size: 12px;
|
|
31
|
-
color: #
|
|
31
|
+
color: #444444;
|
|
32
32
|
padding: 0 5px;
|
|
33
33
|
border-radius: 2px;
|
|
34
34
|
min-width: 24px;
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
.sdoc-image-hover-menu-container .hover-menu-container .op-item:hover {
|
|
42
|
-
color: #
|
|
42
|
+
color: #444444;
|
|
43
43
|
text-decoration: none;
|
|
44
44
|
background: #f1f1f1;
|
|
45
45
|
}
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
|
|
26
26
|
.link-op-menu-link {
|
|
27
27
|
font-size: 12px;
|
|
28
|
-
color: #
|
|
28
|
+
color: #444444;
|
|
29
29
|
padding: 0 5px;
|
|
30
30
|
border-radius: 2px;
|
|
31
31
|
line-height: 20px;
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
.link-op-menu-link:hover {
|
|
36
|
-
color: #
|
|
36
|
+
color: #444444;
|
|
37
37
|
text-decoration: none;
|
|
38
38
|
background: #f1f1f1;
|
|
39
39
|
}
|
package/package.json
CHANGED
|
@@ -635,6 +635,6 @@
|
|
|
635
635
|
"Property": "Property",
|
|
636
636
|
"Comment_list": "Comment list",
|
|
637
637
|
"Add_Comment": "Add Comment",
|
|
638
|
-
"
|
|
639
|
-
"
|
|
638
|
+
"Zoom_in": "Zoom in",
|
|
639
|
+
"Zoom_out": "Zoom out"
|
|
640
640
|
}
|