Add data-id attribute to the buttons (#14182)

fix https://github.com/siyuan-note/siyuan/issues/12518
This commit is contained in:
Jeffrey Chen 2025-02-25 18:02:35 +08:00 committed by GitHub
parent 853cf71d31
commit 33f8def8ce
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
16 changed files with 224 additions and 31 deletions

View file

@ -2160,7 +2160,7 @@ export class Gutter {
});
const width = firstElement.style.width.endsWith("%") ? parseInt(firstElement.style.width) : 0;
window.siyuan.menus.menu.append(new MenuItem({
id: "widthDrag",
id: "width",
label: window.siyuan.languages.width,
submenu: styles.concat([{
id: "widthDrag",