aboutsummaryrefslogtreecommitdiff
path: root/src/client/util/TooltipTextMenu.tsx
diff options
context:
space:
mode:
authorab <abdullah_ahmed@brown.edu>2019-06-13 12:03:39 -0400
committerab <abdullah_ahmed@brown.edu>2019-06-13 12:03:39 -0400
commit0a6c03f109254e36556482e75fa5fb14491d1626 (patch)
tree61c5cc4e3f62b054c39e36672d50852822b1f94f /src/client/util/TooltipTextMenu.tsx
parent37335c64be97502895d6fd80282daa8ef42a81a5 (diff)
demo
Diffstat (limited to 'src/client/util/TooltipTextMenu.tsx')
-rw-r--r--src/client/util/TooltipTextMenu.tsx15
1 files changed, 6 insertions, 9 deletions
diff --git a/src/client/util/TooltipTextMenu.tsx b/src/client/util/TooltipTextMenu.tsx
index e12d4ed3c..7d4d5566c 100644
--- a/src/client/util/TooltipTextMenu.tsx
+++ b/src/client/util/TooltipTextMenu.tsx
@@ -234,19 +234,16 @@ export class TooltipTextMenu {
this.linkEditor.appendChild(linkBtn);
this.tooltip.appendChild(this.linkEditor);
+ // SUMMARIZE 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.className = "summarize";
+ starButton.textContent = "★";
+ starButton.title = 'Summarize';
starButton.onclick = () => {
let state = this.view.state;
this.insertStar(state, this.view.dispatch);
- }
+ };
this.tooltip.appendChild(starButton);
}