diff options
| author | ab <abdullah_ahmed@brown.edu> | 2019-09-16 15:26:36 -0400 |
|---|---|---|
| committer | ab <abdullah_ahmed@brown.edu> | 2019-09-16 15:26:36 -0400 |
| commit | 19375927c677ad6c99c77d0c7dac17fe7a2712a9 (patch) | |
| tree | 147dd5d3263f8f050d6cda4bd4986f779a391621 /src/client/views/Recommendations.tsx | |
| parent | d3b4f8991aefcc939768cfa82617e42862693bc6 (diff) | |
beginning to handle external interactions
Diffstat (limited to 'src/client/views/Recommendations.tsx')
| -rw-r--r-- | src/client/views/Recommendations.tsx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/client/views/Recommendations.tsx b/src/client/views/Recommendations.tsx index ff6e66492..b7b1d84d0 100644 --- a/src/client/views/Recommendations.tsx +++ b/src/client/views/Recommendations.tsx @@ -158,11 +158,15 @@ export class RecommendationsBox extends React.Component<FieldViewProps> { // } // let style = { left: this.pageX, top: this.pageY }; //const transform = "translate(" + (NumCast(this.props.node.x) + 350) + "px, " + NumCast(this.props.node.y) + "px" + let title = StrCast((this.props.Document.sourceDoc as Doc).title); + if (title.length > 15) { + title = title.substring(0, 15) + "..."; + } return ( // <Measure offset onResize={action((r: any) => { this._width = r.offset.width; this._height = r.offset.height; })}> // {({ measureRef }) => ( <div className="rec-scroll"> - <p>Recommendations</p> + <p>Recommendations for "{title}"</p> {DocListCast(this.props.Document.data).map(doc => { return ( <div className="content"> |
