diff --git a/app/src/menus/protyle.ts b/app/src/menus/protyle.ts index 8dafc8694..85d6ebad9 100644 --- a/app/src/menus/protyle.ts +++ b/app/src/menus/protyle.ts @@ -1292,7 +1292,7 @@ export const imgMenu = (protyle: IProtyle, range: Range, assetElement: HTMLEleme id: "widthDrag", iconHTML: "", type: "readonly", - label: `
-1 || imgElement.parentElement.style.width.endsWith("vw")) ? parseInt(imgElement.parentElement.style.width.replace("calc(", "")) : 0}" class="b3-slider fn__block" max="100" min="1" step="1" type="range">
`, + label: `
-1 || imgElement.parentElement.style.width.endsWith("vw")) ? parseInt(imgElement.parentElement.style.width.replace("calc(", "")) : 0}" class="b3-slider fn__block" max="100" min="1" step="1" type="range">
`, bind(element) { rangeElement = element.querySelector("input"); rangeElement.addEventListener("input", () => { @@ -1357,7 +1357,7 @@ export const imgMenu = (protyle: IProtyle, range: Range, assetElement: HTMLEleme id: "heightDrag", iconHTML: "", type: "readonly", - label: `
`, + label: `
`, bind(element) { rangeHeightElement = element.querySelector("input"); rangeHeightElement.addEventListener("input", () => { diff --git a/app/src/protyle/gutter/index.ts b/app/src/protyle/gutter/index.ts index ef76ec701..13de7abc3 100644 --- a/app/src/protyle/gutter/index.ts +++ b/app/src/protyle/gutter/index.ts @@ -1475,8 +1475,9 @@ export class Gutter { icon: "iconCode", submenu: [{ id: "height", - label: `${window.siyuan.languages.height} -`, + iconHTML: "", + type: "readonly", + label: `
px
`, bind: (element) => { element.querySelector("input").addEventListener("change", (event) => { const newHeight = ((event.target as HTMLInputElement).value || "420") + "px"; @@ -2093,9 +2094,7 @@ export class Gutter { id: "widthInput", iconHTML: "", type: "readonly", - label: `
- px -
`, + label: `
px
`, bind: (element) => { const inputElement = element.querySelector("input"); inputElement.addEventListener("input", () => { @@ -2134,9 +2133,7 @@ export class Gutter { id: "widthDrag", iconHTML: "", type: "readonly", - label: `
- -
`, + label: `
`, bind: (element) => { rangeElement = element.querySelector("input"); rangeElement.addEventListener("input", () => { @@ -2183,9 +2180,7 @@ export class Gutter { id: "heightInput", iconHTML: "", type: "readonly", - label: `
- px -
`, + label: `
px
`, bind: (element) => { const inputElement = element.querySelector("input"); inputElement.addEventListener("input", () => { @@ -2222,9 +2217,7 @@ export class Gutter { submenu: styles.concat([{ iconHTML: "", type: "readonly", - label: `
- -
`, + label: `
`, bind: (element) => { rangeElement = element.querySelector("input"); rangeElement.addEventListener("input", () => {