aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndy Rickert <andrew_rickert@brown.edu>2020-06-16 14:19:53 -0400
committerAndy Rickert <andrew_rickert@brown.edu>2020-06-16 14:19:53 -0400
commitda8b3384142b8b0714fb7fc35a5ca4a48ed94ed3 (patch)
tree0243924d8155c987211e12896550f0c31e55bed1 /src
parenta0c15d84b6d5f1aff604b755ec31c66dd341b235 (diff)
reset
Diffstat (limited to 'src')
-rw-r--r--src/client/views/search/SearchBox.tsx5
-rw-r--r--src/client/views/search/SearchItem.tsx1
2 files changed, 4 insertions, 2 deletions
diff --git a/src/client/views/search/SearchBox.tsx b/src/client/views/search/SearchBox.tsx
index 596a0cac7..afc3e7c8b 100644
--- a/src/client/views/search/SearchBox.tsx
+++ b/src/client/views/search/SearchBox.tsx
@@ -668,6 +668,7 @@ export class SearchBox extends ViewBoxBaseComponent<FieldViewProps, SearchBoxDoc
}
const highlights = Array.from([...Array.from(new Set(result[1]).values())]);
let lines = new List<string>(result[2]);
+ result[0]._height=46;
result[0].lines=lines;
result[0].highlighting=highlights.join(", ");
this._visibleDocuments[i] = result[0];
@@ -690,7 +691,7 @@ export class SearchBox extends ViewBoxBaseComponent<FieldViewProps, SearchBoxDoc
const highlights = Array.from([...Array.from(new Set(result[1]).values())]);
let lines = new List<string>(result[2]);
-
+ result[0]._height=46;
result[0].lines= lines;
result[0].highlighting=highlights.join(", ");
if(i<this._visibleDocuments.length){
@@ -724,6 +725,7 @@ export class SearchBox extends ViewBoxBaseComponent<FieldViewProps, SearchBoxDoc
//this.bucketcount[0]+=1;
const highlights = Array.from([...Array.from(new Set(result[1]).values())]);
let lines = new List<string>(result[2]);
+ result[0]._height=46;
result[0].lines= lines;
result[0].highlighting=highlights.join(", ");
Doc.AddDocToList(this.dataDoc, this.props.fieldKey, result[0]);
@@ -755,6 +757,7 @@ export class SearchBox extends ViewBoxBaseComponent<FieldViewProps, SearchBoxDoc
if (!this.blockedTypes.includes(StrCast(result[0].type))){
const highlights = Array.from([...Array.from(new Set(result[1]).values())]);
let lines = new List<string>(result[2]);
+ result[0]._height=46;
result[0].lines= lines;
result[0].highlighting=highlights.join(", ");
Doc.AddDocToList(this.dataDoc, this.props.fieldKey, result[0]);
diff --git a/src/client/views/search/SearchItem.tsx b/src/client/views/search/SearchItem.tsx
index 0c4ddf038..69a2c16cf 100644
--- a/src/client/views/search/SearchItem.tsx
+++ b/src/client/views/search/SearchItem.tsx
@@ -516,7 +516,6 @@ export class SearchItem extends ViewBoxBaseComponent<FieldViewProps, SearchSchem
</div>
}
else {
- console.log(this.rootDoc.highlighting);
return <div className="searchItem-overview" onPointerDown={this.pointerDown} onContextMenu={this.onContextMenu}>
<div ref={this._mainRef} className="searchItem" onPointerEnter={this.highlightDoc} onPointerLeave={this.unHighlightDoc}>
<div className="searchItem-body" onClick={this.onClick}>