From 6d702330c0a3b18ead423dcfab898957107c99a9 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Sat, 1 Mar 2025 19:29:31 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/14213 --- app/src/protyle/header/Background.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/app/src/protyle/header/Background.ts b/app/src/protyle/header/Background.ts index c064f1965..359621525 100644 --- a/app/src/protyle/header/Background.ts +++ b/app/src/protyle/header/Background.ts @@ -586,10 +586,16 @@ export class Background { }); } }); - menu.element.querySelector(".b3-menu__items").setAttribute("style", "overflow: initial"); + const itemsElement = menu.element.querySelector(".b3-menu__items") + itemsElement.setAttribute("style", "overflow: initial"); + /// #if MOBILE + menu.fullscreen(); + itemsElement.firstElementChild.setAttribute("style", "padding: 0 8px;height: 100%;"); + /// #else const rect = target.getBoundingClientRect(); menu.open({x: rect.left, y: rect.top + rect.height}); menu.element.querySelector("input").focus(); + /// #endif } private getTags(removeTag?: string) {