Skip to content

Commit

Permalink
Fix an issue with tooltips not sticking to their host elements
Browse files Browse the repository at this point in the history
Signed-off-by: Axel Boberg <[email protected]>
  • Loading branch information
axelboberg committed Feb 14, 2024
1 parent 42c40f6 commit d1b1e5e
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 1 deletion.
9 changes: 9 additions & 0 deletions app/bridge.css
Original file line number Diff line number Diff line change
Expand Up @@ -271,15 +271,24 @@ input[type="checkbox"]:checked::before {

/* Hints */

[data-hint] {
position: relative;
}

[data-hint]:hover::before {
content: attr(data-hint);
position: absolute;
top: 0;
left: 0;

padding: 5px 9px;

color: black;
background: white;
border-radius: 6px;

white-space: nowrap;

transform: translate(0, 5px);
z-index: 10;
}
Expand Down
1 change: 1 addition & 0 deletions plugins/caspar/lib/types.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ function init (htmlPath) {
name: 'Duration',
type: 'string',
default: '0',
allowsVariables: true,
'ui.group': 'Transition',
'ui.unit': 'frames'
},
Expand Down
2 changes: 1 addition & 1 deletion plugins/inspector/app/components/Form/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ export function Form () {
<label id={id} className='Form-inputLabel'>{property.name}</label>
{
property.allowsVariables &&
<div className='Form-inputVariableHint' data-hint='Supports variables' data-hint-alignment='right'>=</div>
<div className='Form-inputVariableHint' data-hint='Supports variables as $(name)' data-hint-alignment='right'>=</div>
}
</div>
{
Expand Down
2 changes: 2 additions & 0 deletions plugins/types/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
"delay": {
"name": "Delay",
"type": "string",
"allowsVariables": true,
"ui.group": "Timing",
"ui.unit": "ms"
}
Expand All @@ -73,6 +74,7 @@
"delay": {
"name": "Delay",
"type": "string",
"allowsVariables": true,
"ui.group": "Timing",
"ui.unit": "ms"
}
Expand Down

0 comments on commit d1b1e5e

Please sign in to comment.