diff --git a/app/src/assets/scss/business/_av.scss b/app/src/assets/scss/business/_av.scss index 08e1db3c1..c38b9cdf0 100644 --- a/app/src/assets/scss/business/_av.scss +++ b/app/src/assets/scss/business/_av.scss @@ -246,6 +246,11 @@ &:hover svg { opacity: 1; } + + img { + height: 36px; + width: 24px; + } } &__widthdrag { diff --git a/app/src/protyle/hint/index.ts b/app/src/protyle/hint/index.ts index 3c51766e0..7d72dc997 100644 --- a/app/src/protyle/hint/index.ts +++ b/app/src/protyle/hint/index.ts @@ -33,6 +33,7 @@ import {isMobile} from "../../util/functions"; import {isCtrl, isIPhone} from "../util/compatibility"; import {avRender} from "../render/av/render"; import {genIconHTML} from "../render/util"; +import {insertAttrViewBlockAnimation} from "../render/av/action"; export class Hint { public timeId: number; @@ -452,6 +453,7 @@ ${genHintItemHTML(item)} avID, }]); } + insertAttrViewBlockAnimation(nodeElement, 1, previousID); return; } this.enableExtend = false; diff --git a/app/src/protyle/render/av/action.ts b/app/src/protyle/render/av/action.ts index 433a55fbe..f001953d0 100644 --- a/app/src/protyle/render/av/action.ts +++ b/app/src/protyle/render/av/action.ts @@ -296,3 +296,20 @@ export const updateAVName = (protyle: IProtyle, blockElement: Element) => { }]); nameElement.dataset.title = nameElement.textContent.trim(); }; + +export const insertAttrViewBlockAnimation = (blockElement: Element, size: number, previousId: string) => { + const previousElement = blockElement.querySelector(`.av__row[data-id="${previousId}"]`) || blockElement.querySelector(`.av__row--header`); + let colHTML = "" + previousElement.querySelectorAll(".av__cell").forEach((item: HTMLElement) => { + colHTML += `
` + }) + + let html = "" + new Array(size).fill(1).forEach(() => { + html += `