mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-23 07:24:07 +01:00
This commit is contained in:
parent
38f0b0f469
commit
aad60b4d4e
9 changed files with 33 additions and 9 deletions
|
|
@ -58,9 +58,9 @@ export const fullscreen = (element: Element, btnElement?: Element) => {
|
|||
|
||||
if (btnElement) {
|
||||
if (isFullscreen) {
|
||||
btnElement.querySelector("use").setAttribute("xlink:href", "#iconFullscreen");
|
||||
btnElement.querySelector("use").setAttribute("xlink:href", "#iconHideDock");
|
||||
} else {
|
||||
btnElement.querySelector("use").setAttribute("xlink:href", "#iconContract");
|
||||
btnElement.querySelector("use").setAttribute("xlink:href", "#iconDock");
|
||||
}
|
||||
const dockLayoutElement = hasClosestByClassName(element, "layout--float");
|
||||
if (dockLayoutElement) {
|
||||
|
|
|
|||
|
|
@ -325,7 +325,7 @@ export class Breadcrumb {
|
|||
}).element);
|
||||
if (!isMobile()) {
|
||||
window.siyuan.menus.menu.append(new MenuItem({
|
||||
icon: "iconFullscreen",
|
||||
icon: "iconHideDock",
|
||||
accelerator: window.siyuan.config.keymap.editor.general.fullscreen.custom,
|
||||
label: window.siyuan.languages.fullscreen,
|
||||
click: () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue