This repository was archived by the owner on Feb 7, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
packages/ui-contract-editor/src/lib/components/Formula Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -8,15 +8,16 @@ import { FORMULA } from '../../ContractEditor/plugins/withClauseSchema';
8
8
9
9
// overflow-wrap: break-word; // NEEDS TO BE NONE
10
10
export const FormulaTooltip = styled . span `
11
+ z-index: 2;
11
12
visibility: ${ props => ( props . currentHover ? 'visible' : 'hidden' ) } ;
12
- margin-top: - ${ props => ( props . tooltipHeight + 1.35 ) } em ;
13
+ transform: translateY(-110%) ;
13
14
white-space: normal;
14
15
15
16
&:before {
16
17
content: '';
17
18
position: absolute;
18
19
bottom: -6.7px;
19
- left: ${ props => props . caretLeft - 1 } px ;
20
+ left: 1px ;
20
21
border-top: 6px solid #141F3C;
21
22
border-left: 6px solid transparent;
22
23
border-right: 6px solid transparent;
@@ -26,7 +27,7 @@ export const FormulaTooltip = styled.span`
26
27
content: '';
27
28
position: absolute;
28
29
bottom: -6.7px;
29
- left: ${ props => props . caretLeft } px ;
30
+ left: 2px ;
30
31
border-top: 4px solid #141F3C;
31
32
border-left: 4px solid transparent;
32
33
border-right: 4px solid transparent;
@@ -77,8 +78,6 @@ const Formula = React.forwardRef((props, ref) => {
77
78
const formulaTooltip = {
78
79
className : 'variableTooltip' ,
79
80
currentHover : hoveringFormula ,
80
- caretLeft : 2 ,
81
- tooltipHeight : 1.85 ,
82
81
contentEditable : false
83
82
} ;
84
83
You can’t perform that action at this time.
0 commit comments