mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-04 06:31:06 +08:00
This commit is contained in:
parent
298a15943e
commit
9b46324d26
@ -10,6 +10,13 @@
|
|||||||
opacity: 1;
|
opacity: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&--touch {
|
||||||
|
.av__views .block__icon,
|
||||||
|
.av__row--footer .av__calc {
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
&__cursor {
|
&__cursor {
|
||||||
width: .1px;
|
width: .1px;
|
||||||
height: 0;
|
height: 0;
|
||||||
|
@ -516,11 +516,6 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.av__views .block__icon,
|
|
||||||
.av__row--footer .av__calc {
|
|
||||||
opacity: 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
.b3-dialog__container {
|
.b3-dialog__container {
|
||||||
max-width: 100vw;
|
max-width: 100vw;
|
||||||
}
|
}
|
||||||
|
@ -12,6 +12,8 @@ import {showMessage} from "../../../dialog/message";
|
|||||||
import {addClearButton} from "../../../util/addClearButton";
|
import {addClearButton} from "../../../util/addClearButton";
|
||||||
import {escapeAriaLabel, escapeAttr, escapeHtml} from "../../../util/escape";
|
import {escapeAriaLabel, escapeAttr, escapeHtml} from "../../../util/escape";
|
||||||
import {electronUndo} from "../../undo";
|
import {electronUndo} from "../../undo";
|
||||||
|
import {isInAndroid, isInHarmony, isInIOS} from "../../util/compatibility";
|
||||||
|
import {isMobile} from "../../../util/functions";
|
||||||
|
|
||||||
export const avRender = (element: Element, protyle: IProtyle, cb?: () => void, viewID?: string, renderAll = true) => {
|
export const avRender = (element: Element, protyle: IProtyle, cb?: () => void, viewID?: string, renderAll = true) => {
|
||||||
let avElements: Element[] = [];
|
let avElements: Element[] = [];
|
||||||
@ -29,6 +31,9 @@ export const avRender = (element: Element, protyle: IProtyle, cb?: () => void, v
|
|||||||
if (e.getAttribute("data-render") === "true") {
|
if (e.getAttribute("data-render") === "true") {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (isMobile() || isInIOS() || isInAndroid() || isInHarmony()) {
|
||||||
|
e.classList.add("av--touch");
|
||||||
|
}
|
||||||
const alignSelf = e.style.alignSelf;
|
const alignSelf = e.style.alignSelf;
|
||||||
if (e.firstElementChild.innerHTML === "") {
|
if (e.firstElementChild.innerHTML === "") {
|
||||||
e.style.alignSelf = "";
|
e.style.alignSelf = "";
|
||||||
|
Loading…
Reference in New Issue
Block a user