diff options
author | Abdullah Ahmed <abdullah_ahmed@brown.edu> | 2019-07-22 10:35:34 -0400 |
---|---|---|
committer | Abdullah Ahmed <abdullah_ahmed@brown.edu> | 2019-07-22 10:35:34 -0400 |
commit | 50126e066fe5da749148270fb644e09ed71ee5ac (patch) | |
tree | 756722fb9b6c82e2608f08ad4d4ebc2f1ef48a9d /src | |
parent | 00f466d3b79eebcb9be42a5d88c8dc083a7be376 (diff) |
style changes
Diffstat (limited to 'src')
-rw-r--r-- | src/client/util/TooltipTextMenu.scss | 31 | ||||
-rw-r--r-- | src/client/util/TooltipTextMenu.tsx | 3 |
2 files changed, 6 insertions, 28 deletions
diff --git a/src/client/util/TooltipTextMenu.scss b/src/client/util/TooltipTextMenu.scss index 9923cd035..d92d72527 100644 --- a/src/client/util/TooltipTextMenu.scss +++ b/src/client/util/TooltipTextMenu.scss @@ -246,10 +246,10 @@ //margin-top: 100px; //-webkit-transform: translateX(-50%); //transform: translateX(-50%); - transform: translateY(-85px); + transform: translateY(-115%); pointer-events: all; - height: 30px; - width:550px; + height: fit-content; + width:450px; .ProseMirror-example-setup-style hr { padding: 2px 10px; border: none; @@ -265,29 +265,6 @@ } } -// .tooltipMenu:before { -// content: ""; -// height: 0; width: 0; -// position: absolute; -// left: 50%; -// margin-left: -5px; -// bottom: -6px; -// border: 5px solid transparent; -// border-bottom-width: 0; -// border-top-color: silver; -// } -// .tooltipMenu:after { -// content: ""; -// height: 0; width: 0; -// position: absolute; -// left: 50%; -// margin-left: -5px; -// bottom: -4.5px; -// border: 5px solid transparent; -// border-bottom-width: 0; -// border-top-color: $dark-color; -// } - .menuicon { display: inline-block; border-right: 1px solid white(0, 0, 0, 0.2); @@ -312,10 +289,8 @@ padding-right: 0px; } .summarize{ - //margin-left: 15px; color: white; height: 20px; - // background-color: white; text-align: center; } diff --git a/src/client/util/TooltipTextMenu.tsx b/src/client/util/TooltipTextMenu.tsx index 0c81eda2b..103157bbc 100644 --- a/src/client/util/TooltipTextMenu.tsx +++ b/src/client/util/TooltipTextMenu.tsx @@ -827,6 +827,9 @@ export class TooltipTextMenu { }); } } + if (!ref_node.isLeaf) { + ref_node = ref_node.child(0); + } return ref_node; } |