perf: 移动端调整(close #125)

This commit is contained in:
pipipi-pikachu 2022-07-09 14:09:18 +08:00
parent 8d739ec8cf
commit 8b4a151ca1
2 changed files with 5 additions and 2 deletions

View File

@ -36,6 +36,8 @@ const { redo, undo } = useHistorySnapshot()
padding: 0 18px;
font-size: 13px;
box-shadow: 0 0 15px 0 rgba(0, 0, 0, 0.1);
position: relative;
z-index: 2;
}
.history {
display: flex;

View File

@ -56,7 +56,7 @@ const insertTextElement = () => {
top: (VIEWPORT_SIZE * viewportRatio.value - height) / 2,
width,
height,
}, '<p><span style=\"font-size: 24px\">新添加文本</span></p>')
}, '<p>新添加文本</p>')
}
const insertImageElement = (files: FileList) => {
@ -100,6 +100,8 @@ const handleInputMark = (e: Event) => {
box-shadow: 0 0 15px 0 rgba(0, 0, 0, 0.1);
display: flex;
flex-direction: column;
position: relative;
z-index: 2;
}
.remark {
position: relative;
@ -116,7 +118,6 @@ const handleInputMark = (e: Event) => {
outline: 0;
padding: 8px 10px;
font-size: 12px;
background-color: transparent;
@include absolute-0();
}