mirror of
https://github.com/zadam/trilium.git
synced 2025-01-15 19:51:57 +08:00
scale the whole edit widget, not just the icon
This commit is contained in:
parent
c89455f93f
commit
9d9305300c
1 changed files with 6 additions and 2 deletions
|
@ -39,9 +39,13 @@ export default class EditButton extends OnClickButtonWidget {
|
|||
// make the edit button stand out on the first display, otherwise
|
||||
// it's difficult to notice that the note is readonly
|
||||
if (this.isVisible() && !wasVisible) {
|
||||
this.$iconSpan.addClass("bx-tada bx-lg");
|
||||
this.$iconSpan.addClass("bx-tada");
|
||||
this.$widget.css("transform", "scale(2)");
|
||||
|
||||
setTimeout(() => this.$iconSpan.removeClass("bx-tada bx-lg"), 1700);
|
||||
setTimeout(() => {
|
||||
this.$iconSpan.removeClass("bx-tada bx-lg");
|
||||
this.$widget.css("transform", "scale(1)");
|
||||
}, 1700);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue