mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-05 23:21:47 +01:00
This commit is contained in:
parent
bd8254945d
commit
3af248fe04
3 changed files with 9 additions and 4 deletions
|
|
@ -3,7 +3,7 @@
|
|||
background-color: var(--b3-theme-background);
|
||||
position: absolute;
|
||||
box-shadow: var(--b3-dialog-shadow);
|
||||
z-index: 201;
|
||||
z-index: 205;
|
||||
width: 60vw;
|
||||
word-break: break-word;
|
||||
border-radius: 4px;
|
||||
|
|
@ -19,7 +19,7 @@
|
|||
}
|
||||
|
||||
&--top {
|
||||
z-index: 303;
|
||||
z-index: 206;
|
||||
}
|
||||
|
||||
&--move {
|
||||
|
|
|
|||
|
|
@ -35,8 +35,13 @@ ctrl+p 搜索: 199
|
|||
// 需小于 .block__popover
|
||||
.protyle-util: 200
|
||||
|
||||
// 引用提示需小于 .block__popover
|
||||
.b3-menu: 201
|
||||
|
||||
// 需小于 .b3-menu 悬浮窗点击更多
|
||||
// 需小于 .b3-dialog https://ld246.com/article/1637204682648
|
||||
.block__popover: 201
|
||||
.block__popover: 205
|
||||
.block__popover--top: 206
|
||||
|
||||
// 需大于 .block__popover
|
||||
.b3-menu: 210
|
||||
|
|
|
|||
|
|
@ -42,7 +42,7 @@ export class Hint {
|
|||
this.element = document.createElement("div");
|
||||
this.element.setAttribute("data-close", "false");
|
||||
// height 402 根据 .emojis max-height+8 得来
|
||||
this.element.setAttribute("style", `overflow:auto;max-height:402px;width:${Math.max(protyle.element.clientWidth / 2, 320)}px;box-sizing: border-box;`);
|
||||
this.element.setAttribute("style", `z-index: 201;overflow:auto;max-height:402px;width:${Math.max(protyle.element.clientWidth / 2, 320)}px;box-sizing: border-box;`);
|
||||
this.element.className = "b3-menu b3-list b3-list--background fn__none";
|
||||
this.element.addEventListener("click", (event) => {
|
||||
const eventTarget = event.target as HTMLElement;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue