mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-06 00:38:49 +01:00
💄
This commit is contained in:
parent
5c90a6ffbe
commit
1373d3d10b
7 changed files with 14 additions and 7 deletions
|
|
@ -54,6 +54,9 @@
|
|||
--b3-tooltips-color: var(--b3-theme-background-light);
|
||||
--b3-tooltips-shadow: 0 2px 8px rgba(0, 0, 0, .1);
|
||||
|
||||
/* 为空提示 */
|
||||
--b3-empty-color: var(--b3-theme-on-surface-light);
|
||||
|
||||
/* 遮罩 */
|
||||
--b3-mask-background: rgba(220, 220, 220, .4);
|
||||
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
"name": "daylight",
|
||||
"author": "Vanessa",
|
||||
"url": "https://github.com/Vanessa219",
|
||||
"version": "1.0.2",
|
||||
"version": "1.0.3",
|
||||
"modes": [
|
||||
"light"
|
||||
]
|
||||
|
|
|
|||
|
|
@ -54,6 +54,9 @@
|
|||
--b3-tooltips-color: var(--b3-theme-on-surface-light);
|
||||
--b3-tooltips-shadow: 0 2px 8px rgba(0, 0, 0, .3);
|
||||
|
||||
/* 为空提示 */
|
||||
--b3-empty-color: var(--b3-theme-on-surface);
|
||||
|
||||
/* 遮罩 */
|
||||
--b3-mask-background: rgba(10, 10, 10, 0.4);
|
||||
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
"name": "midnight",
|
||||
"author": "Vanessa",
|
||||
"url": "https://github.com/Vanessa219",
|
||||
"version": "1.0.2",
|
||||
"version": "1.0.3",
|
||||
"modes": [
|
||||
"dark"
|
||||
]
|
||||
|
|
|
|||
|
|
@ -474,7 +474,7 @@
|
|||
|
||||
html .protyle-wysiwyg [data-node-id]:last-child [spellcheck][contenteditable="true"]:empty:before {
|
||||
content: "Enter text";
|
||||
color: var(--b3-theme-on-surface-light);
|
||||
color: var(--b3-empty-color);
|
||||
}
|
||||
|
||||
html[lang="zh_CN"] .protyle-wysiwyg [data-node-id]:last-child [spellcheck][contenteditable="true"]:empty:before {
|
||||
|
|
|
|||
|
|
@ -86,7 +86,7 @@ export const initWindowEvent = (app: App) => {
|
|||
const dockElement = hasClosestByClassName(target, "dock__item");
|
||||
if (dockElement && dockElement.getAttribute("data-type")) {
|
||||
const dockRect = dockElement.getBoundingClientRect()
|
||||
initDockMenu(dockElement).popup({x: dockRect.right, y: dockRect.bottom});
|
||||
initDockMenu(dockElement).popup({x: dockRect.right, y: dockRect.top});
|
||||
event.stopImmediatePropagation();
|
||||
event.preventDefault();
|
||||
return;
|
||||
|
|
@ -97,7 +97,8 @@ export const initWindowEvent = (app: App) => {
|
|||
if (tabElement) {
|
||||
const tabRect = tabElement.getBoundingClientRect()
|
||||
initTabMenu(app, (getInstanceById(tabElement.getAttribute("data-id")) as Tab)).popup({
|
||||
x: tabRect.left, y: tabRect.bottom
|
||||
x: tabRect.left,
|
||||
y: tabRect.bottom
|
||||
});
|
||||
hideTooltip()
|
||||
event.stopImmediatePropagation();
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ export const globalTouchEnd = (event: TouchEvent, yDiff: number, time: number, a
|
|||
const menu = initNavigationMenu(app, fileItemElement);
|
||||
if (isIPadBoolean) {
|
||||
const rect = fileItemElement.getBoundingClientRect()
|
||||
menu.popup({x: rect.right, y: rect.bottom, h: rect.height})
|
||||
menu.popup({x: rect.right - 52, y: rect.bottom, h: rect.height})
|
||||
hideTooltip()
|
||||
} else {
|
||||
window.siyuan.menus.menu.fullscreen("bottom");
|
||||
|
|
@ -33,7 +33,7 @@ export const globalTouchEnd = (event: TouchEvent, yDiff: number, time: number, a
|
|||
const menu = initFileMenu(app, rootElement.dataset.url, fileItemElement.dataset.path, fileItemElement);
|
||||
if (isIPadBoolean) {
|
||||
const rect = fileItemElement.getBoundingClientRect()
|
||||
menu.popup({x: rect.right, y: rect.bottom, h: rect.height})
|
||||
menu.popup({x: rect.right - 52, y: rect.bottom, h: rect.height})
|
||||
hideTooltip()
|
||||
} else {
|
||||
window.siyuan.menus.menu.fullscreen("bottom");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue