mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-03 02:37:02 +00:00
📱 编辑数据库单元格
This commit is contained in:
@@ -418,7 +418,7 @@ export const cellScrollIntoView = (blockElement: HTMLElement, cellElement: Eleme
|
||||
/// #if MOBILE
|
||||
const contentElement = hasClosestByClassName(blockElement, "protyle-content", true);
|
||||
if (contentElement && cellElement.getAttribute("data-dtype") !== "checkbox") {
|
||||
const keyboardToolbarTop = window.siyuan.mobile.size.isLandscape ? window.siyuan.mobile.size.landscape.height2 : window.siyuan.mobile.size.portrait.height2 - 48;
|
||||
const keyboardToolbarTop = (window.siyuan.mobile.size.isLandscape ? window.siyuan.mobile.size.landscape.height2 : window.siyuan.mobile.size.portrait.height2) - 48;
|
||||
if (cellRect.bottom > keyboardToolbarTop) {
|
||||
contentElement.scrollTop = contentElement.scrollTop + (cellRect.bottom - keyboardToolbarTop);
|
||||
} else if (cellRect.top < 110) {
|
||||
|
||||
Reference in New Issue
Block a user