mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-03 20:06:08 +01:00 
			
		
		
		
	fix edit button
This commit is contained in:
		@@ -1,8 +1,8 @@
 | 
			
		||||
import NoteContextAwareWidget from "../note_context_aware_widget.js";
 | 
			
		||||
 | 
			
		||||
const TPL = `<span class="button-widget bx"
 | 
			
		||||
const TPL = `<button class="button-widget bx"
 | 
			
		||||
      data-toggle="tooltip"
 | 
			
		||||
      title=""></span>`;
 | 
			
		||||
      title=""></button>`;
 | 
			
		||||
 | 
			
		||||
export default class AbstractButtonWidget extends NoteContextAwareWidget {
 | 
			
		||||
    isEnabled() {
 | 
			
		||||
 
 | 
			
		||||
@@ -39,12 +39,10 @@ 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");
 | 
			
		||||
                this.$widget.css("transform", "scale(2)");
 | 
			
		||||
                this.$widget.addClass("bx-tada bx-lg");
 | 
			
		||||
 | 
			
		||||
                setTimeout(() => {
 | 
			
		||||
                    this.$iconSpan.removeClass("bx-tada bx-lg");
 | 
			
		||||
                    this.$widget.css("transform", "scale(1)");
 | 
			
		||||
                    this.$widget.removeClass("bx-tada bx-lg");
 | 
			
		||||
                }, 1700);
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user