mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-09 22:22:34 +01:00
⚡
This commit is contained in:
parent
6d672cc85f
commit
d475bee01e
7 changed files with 29 additions and 31 deletions
|
|
@ -18,7 +18,7 @@ import {getRecentDocs} from "./getRecentDocs";
|
|||
export const popMenu = () => {
|
||||
activeBlur();
|
||||
hideKeyboardToolbar();
|
||||
document.getElementById("menu").style.right = "0";
|
||||
document.getElementById("menu").style.transform = "translateX(0)";
|
||||
};
|
||||
|
||||
export const initRightMenu = () => {
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ export const openModel = (obj: {
|
|||
bindEvent: (element: HTMLElement) => void
|
||||
}) => {
|
||||
const modelElement = document.getElementById("model");
|
||||
modelElement.style.top = "0";
|
||||
modelElement.style.transform = "translateY(0)";
|
||||
modelElement.querySelector(".toolbar__icon use").setAttribute("xlink:href", "#" + obj.icon);
|
||||
modelElement.querySelector(".toolbar__text").innerHTML = obj.title;
|
||||
const modelMainElement = modelElement.querySelector("#modelMain") as HTMLElement;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue