From facbea8a4167b820663af67d0452fbea7f516ea7 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Tue, 29 Oct 2024 23:38:06 +0800 Subject: [PATCH] :lipstick: https://github.com/siyuan-note/siyuan/issues/12966 --- app/src/protyle/render/av/action.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/src/protyle/render/av/action.ts b/app/src/protyle/render/av/action.ts index e64129b3027..8e9cf485121 100644 --- a/app/src/protyle/render/av/action.ts +++ b/app/src/protyle/render/av/action.ts @@ -91,6 +91,10 @@ export const avClick = (protyle: IProtyle, event: MouseEvent & { target: HTMLEle searchElement.style.width = "128px"; searchElement.style.paddingLeft = ""; searchElement.style.paddingRight = ""; + const viewsElement = hasClosestByClassName(searchElement, "av__views"); + if (viewsElement) { + viewsElement.classList.add("av__views--show") + } setTimeout(() => { searchElement.focus(); }, Constants.TIMEOUT_TRANSITION);