This commit is contained in:
parent
3f50fdab5a
commit
fc5f24658d
3 changed files with 15 additions and 6 deletions
|
@ -480,6 +480,10 @@ html[lang="zh_CN"] .protyle-wysiwyg [data-node-id]:last-child [spellcheck][conte
|
|||
content: "键入文字";
|
||||
}
|
||||
|
||||
.av__views .block__icon {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
@media (max-width: 620px) {
|
||||
.protyle-wysiwyg [data-node-id].sb[data-sb-layout="col"] {
|
||||
flex-direction: column;
|
||||
|
|
|
@ -63,10 +63,12 @@ export const handleTouchEnd = (event: TouchEvent, app: App) => {
|
|||
} else if (scrollElement.classList.contains("code-block")) {
|
||||
scrollElement = scrollElement.firstElementChild.nextElementSibling as HTMLElement;
|
||||
} else if (scrollElement.classList.contains("av")) {
|
||||
scrollElement = scrollElement.querySelector(".av__scroll") as HTMLElement;
|
||||
scrollElement = hasClosestByClassName(target, "layout-tab-bar") || hasClosestByClassName(target, "av__scroll");
|
||||
}
|
||||
if ((xDiff <= 0 && scrollElement.scrollLeft > 0) ||
|
||||
(xDiff >= 0 && scrollElement.clientWidth + scrollElement.scrollLeft < scrollElement.scrollWidth)) {
|
||||
if (scrollElement && (
|
||||
(xDiff <= 0 && scrollElement.scrollLeft > 0) ||
|
||||
(xDiff >= 0 && scrollElement.clientWidth + scrollElement.scrollLeft < scrollElement.scrollWidth)
|
||||
)) {
|
||||
// 左滑拉出菜单后右滑至代码块右侧有空间时,需关闭菜单
|
||||
closePanel();
|
||||
return;
|
||||
|
@ -227,10 +229,12 @@ export const handleTouchMove = (event: TouchEvent) => {
|
|||
} else if (scrollElement.classList.contains("code-block")) {
|
||||
scrollElement = scrollElement.firstElementChild.nextElementSibling as HTMLElement;
|
||||
} else if (scrollElement.classList.contains("av")) {
|
||||
scrollElement = scrollElement.querySelector(".av__scroll") as HTMLElement;
|
||||
scrollElement = hasClosestByClassName(target, "layout-tab-bar") || hasClosestByClassName(target, "av__scroll");
|
||||
}
|
||||
if ((xDiff < 0 && scrollElement.scrollLeft > 0) ||
|
||||
(xDiff > 0 && scrollElement.clientWidth + scrollElement.scrollLeft < scrollElement.scrollWidth)) {
|
||||
if (scrollElement && (
|
||||
(xDiff < 0 && scrollElement.scrollLeft > 0) ||
|
||||
(xDiff > 0 && scrollElement.clientWidth + scrollElement.scrollLeft < scrollElement.scrollWidth)
|
||||
)) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -101,6 +101,7 @@ export const bindViewEvent = (options: {
|
|||
inputElement.dataset.value = inputElement.value;
|
||||
}
|
||||
});
|
||||
inputElement.select();
|
||||
};
|
||||
|
||||
export const getViewHTML = (data: IAVTable) => {
|
||||
|
|
Loading…
Add table
Reference in a new issue