dtable-ui-component 0.1.90-test2 → 0.1.90-test5

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.
@@ -82,7 +82,7 @@ var HtmlLongTextFormatter = /*#__PURE__*/function (_Component) {
82
82
  value: function render() {
83
83
  var innerHtml = this.state.innerHtml;
84
84
  var containerClassName = this.props.containerClassName;
85
- var className = cn('dtable-ui cell-formatter-container long-text-formatter yy', containerClassName);
85
+ var className = cn('dtable-ui cell-formatter-container long-text-formatter', containerClassName);
86
86
  if (!innerHtml) return null;
87
87
  return /*#__PURE__*/React.createElement("div", {
88
88
  className: "".concat(className, " article"),
@@ -68,7 +68,8 @@ var LinkFormatter = /*#__PURE__*/function (_React$Component) {
68
68
  className: "link-item",
69
69
  onClick: _this.expandLinkedTableRow.bind(_assertThisInitialized(_this), row)
70
70
  }, /*#__PURE__*/React.createElement("div", {
71
- className: "link-name"
71
+ className: "link-name",
72
+ title: displayValue
72
73
  }, displayValue));
73
74
  });
74
75
  return result;
@@ -91,9 +91,15 @@ var SimpleLongTextFormatter = /*#__PURE__*/function (_React$Component) {
91
91
  return;
92
92
  }
93
93
  */
94
- _this.clearTimer();
94
+ // in case that there is no `modal-wrapper`
95
+ if (!document.getElementById('modal-wrapper')) {
96
+ return;
97
+ }
98
+
99
+ _this.clearTimer(); //if (!window.isMobile && this.state.value && this.state.value.text) {
100
+
95
101
 
96
- if (!window.isMobile && _this.state.value && _this.state.value.text) {
102
+ if (_this.props.value) {
97
103
  _this.timer = setTimeout(function () {
98
104
  var style = _this.ref.getBoundingClientRect();
99
105
 
@@ -130,7 +136,7 @@ var SimpleLongTextFormatter = /*#__PURE__*/function (_React$Component) {
130
136
 
131
137
  var isPreview = this.state.isPreview;
132
138
  var containerClassName = this.props.containerClassName;
133
- var className = cn('dtable-ui cell-formatter-container long-text-formatter xx', containerClassName);
139
+ var className = cn('dtable-ui cell-formatter-container long-text-formatter', containerClassName);
134
140
  var value = this.translateValue();
135
141
  return /*#__PURE__*/React.createElement("div", {
136
142
  className: className,
@@ -30,8 +30,6 @@ var LongTextPreview = /*#__PURE__*/function (_React$PureComponent) {
30
30
 
31
31
  if (top + height > window.innerHeight) {
32
32
  top = top - height > 0 ? top - height : 0;
33
- } else if (left === 0) {
34
- top = top + window.canvas.getRowHeight();
35
33
  }
36
34
 
37
35
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dtable-ui-component",
3
- "version": "0.1.90-test2",
3
+ "version": "0.1.90-test5",
4
4
  "main": "./lib/index.js",
5
5
  "dependencies": {
6
6
  "@seafile/react-image-lightbox": "0.0.9",