This commit is contained in:
Vanessa 2023-04-30 23:08:47 +08:00
parent bd524d8f92
commit 19a01e862d
2 changed files with 13 additions and 8 deletions

View file

@ -428,13 +428,6 @@
@extend .fn__ellipsis;
}
// iPhone 右上角属性中对不齐
.protyle-wysiwyg--attr .protyle-attr > div:not(.protyle-attr--memo):not(.protyle-attr--refcount) {
max-width: 26vw;
white-space: nowrap;
display: block;
}
.protyle {
&-util {
.color__square {
@ -446,6 +439,18 @@
&-font {
font-size: 14px;
}
// iPhone 右上角属性中对不齐
&-wysiwyg--attr .protyle-attr > div:not(.protyle-attr--memo):not(.protyle-attr--refcount) {
max-width: 26vw;
white-space: nowrap;
display: block;
}
// 移动端键盘弹起和点击加号需保持滚动高度一致
&-background__img img {
height: 200px;
}
}
@media (max-width: 620px) {

View file

@ -26,7 +26,7 @@ export class Background {
this.element = document.createElement("div");
this.element.className = "protyle-background";
this.element.innerHTML = `<div class="protyle-background__img">
<img class="fn__none" style="isMobile()? "200px" : "30vh"">
<img class="fn__none">
<div class="protyle-icons">
<span class="protyle-icon protyle-icon--first b3-tooltips b3-tooltips__sw" style="position: relative" aria-label="${window.siyuan.languages.upload}"><input type="file" style="position: absolute;width: 22px;height: 100%;top: 0;left: 0;opacity: .001;overflow: hidden;cursor: pointer;"><svg><use xlink:href="#iconUpload"></use></svg></span>
<span class="protyle-icon b3-tooltips b3-tooltips__sw" data-type="link" aria-label="${window.siyuan.languages.link}"><svg><use xlink:href="#iconLink"></use></svg></span>