diff options
| author | Abdullah Ahmed <abdullah_ahmed@brown.edu> | 2019-06-12 17:40:23 -0400 |
|---|---|---|
| committer | Abdullah Ahmed <abdullah_ahmed@brown.edu> | 2019-06-12 17:40:23 -0400 |
| commit | b3144df1abdd4919d3a04c85fe9a75de1cdc2782 (patch) | |
| tree | 6c0b3a64fba970441915ed868c37582a8ca4ede6 /src/client/util/TooltipTextMenu.tsx | |
| parent | d6abc733fa6f0bffdbceb4a7bd4c7f449607ea21 (diff) | |
ui changes
Diffstat (limited to 'src/client/util/TooltipTextMenu.tsx')
| -rw-r--r-- | src/client/util/TooltipTextMenu.tsx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/client/util/TooltipTextMenu.tsx b/src/client/util/TooltipTextMenu.tsx index 87a4c33a1..e12d4ed3c 100644 --- a/src/client/util/TooltipTextMenu.tsx +++ b/src/client/util/TooltipTextMenu.tsx @@ -234,13 +234,15 @@ export class TooltipTextMenu { this.linkEditor.appendChild(linkBtn); this.tooltip.appendChild(this.linkEditor); - let starButton = document.createElement("button"); + let starButton = document.createElement("span"); // starButton.style.width = '10px'; // starButton.style.height = '10px'; starButton.style.marginLeft = '10px'; starButton.textContent = "Summarize"; starButton.style.color = 'black'; + starButton.style.height = '20px'; starButton.style.backgroundColor = 'white'; + starButton.style.textAlign = 'center'; starButton.onclick = () => { let state = this.view.state; this.insertStar(state, this.view.dispatch); @@ -450,7 +452,7 @@ export class TooltipTextMenu { let width = Math.abs(start.left - end.left) / 2 * this.editorProps.ScreenToLocalTransform().Scale; let mid = Math.min(start.left, end.left) + width; - this.tooltip.style.width = 225 + "px"; + //this.tooltip.style.width = 225 + "px"; this.tooltip.style.bottom = (box.bottom - start.top) * this.editorProps.ScreenToLocalTransform().Scale + "px"; this.tooltip.style.top = "-100px"; //this.tooltip.style.height = "100px"; |
