make tree item blink when hitting "Show in tree"
This commit is contained in:
parent
6439cddfa6
commit
05854c7ad8
3 changed files with 17 additions and 0 deletions
|
|
@ -12,6 +12,9 @@
|
|||
- add `getVar()` and `setVar` for reading and modifying custom variables. This allows modifying properties directly from scripts.
|
||||
- expose session path as `globals.session`
|
||||
|
||||
- editor
|
||||
- make tree item blink when hitting "Show in tree"
|
||||
|
||||
## 1.9.3
|
||||
|
||||
- bug fixes
|
||||
|
|
|
|||
|
|
@ -85,6 +85,13 @@ var handleClick = function(event) {
|
|||
label: icon('project-diagram') + ' ' + locales('editor_show_in_tree'),
|
||||
action: ()=>{
|
||||
editor.widgetTree.showWidget(editor.selectedWidgets[0])
|
||||
DOM.each(editor.widgetTree.list, '.editing', (el)=>{
|
||||
el.classList.add('editor-blink')
|
||||
el.scrollIntoView({block: 'center'})
|
||||
setTimeout(()=>{
|
||||
el.classList.remove('editor-blink')
|
||||
}, 800)
|
||||
})
|
||||
},
|
||||
shortcut: 't'
|
||||
})
|
||||
|
|
|
|||
|
|
@ -129,6 +129,13 @@
|
|||
top: 0;
|
||||
}
|
||||
|
||||
&.editor-blink:after {
|
||||
animation: tree-editor-blink 0.51s steps(3) infinite;
|
||||
}
|
||||
@keyframes tree-editor-blink {
|
||||
from {--color-fill: var(--color-warning)}
|
||||
to {--color-fill: inherit}
|
||||
}
|
||||
}
|
||||
|
||||
.contains-editing:not(.expanded):not(.editing) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue