diff --git a/src/editor/components/seMenuItem.js b/src/editor/components/seMenuItem.js index b4e25bea..d93a0860 100644 --- a/src/editor/components/seMenuItem.js +++ b/src/editor/components/seMenuItem.js @@ -44,16 +44,16 @@ export class SeMenuItem extends HTMLElement { * @returns {void} */ attributeChangedCallback (name, oldValue, newValue) { + let shortcut = ''; if (oldValue === newValue) return; switch (name) { case 'src': this.$img.setAttribute('src', newValue); - this.$img.style.display = 'block'; + this.$img.style.display = 'inline-block'; break; case 'label': - const shortcut = this.getAttribute('shortcut'); + shortcut = this.getAttribute('shortcut'); this.$label.textContent = `${newValue} ${shortcut ? `(${shortcut})` : ''}`; - this.$img.remove(); break; default: // eslint-disable-next-line no-console diff --git a/src/editor/images/docprop.svg b/src/editor/images/docprop.svg new file mode 100644 index 00000000..ab7fc559 --- /dev/null +++ b/src/editor/images/docprop.svg @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/editor/images/editPref.svg b/src/editor/images/editPref.svg new file mode 100644 index 00000000..96c7cd21 --- /dev/null +++ b/src/editor/images/editPref.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/editor/images/export.svg b/src/editor/images/export.svg new file mode 100644 index 00000000..95e730c2 --- /dev/null +++ b/src/editor/images/export.svg @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/editor/images/imagelib.svg b/src/editor/images/imagelib.svg new file mode 100644 index 00000000..e4f821c6 --- /dev/null +++ b/src/editor/images/imagelib.svg @@ -0,0 +1,10 @@ + + + + + + + + + + \ No newline at end of file diff --git a/src/editor/images/importImg.svg b/src/editor/images/importImg.svg new file mode 100644 index 00000000..5a1908a6 --- /dev/null +++ b/src/editor/images/importImg.svg @@ -0,0 +1,10 @@ + + + + + + + + + + \ No newline at end of file diff --git a/src/editor/images/open.svg b/src/editor/images/open.svg new file mode 100644 index 00000000..4afb58fd --- /dev/null +++ b/src/editor/images/open.svg @@ -0,0 +1,15 @@ + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/editor/images/saveImg.svg b/src/editor/images/saveImg.svg new file mode 100644 index 00000000..23a517f5 --- /dev/null +++ b/src/editor/images/saveImg.svg @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/editor/images/svg-edit-home.svg b/src/editor/images/svg-edit-home.svg new file mode 100644 index 00000000..a2acbe49 --- /dev/null +++ b/src/editor/images/svg-edit-home.svg @@ -0,0 +1,26 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/editor/index.html b/src/editor/index.html index 8b25f2ef..3303c0eb 100644 --- a/src/editor/index.html +++ b/src/editor/index.html @@ -76,14 +76,14 @@ - - - - - - - - + + + + + + + +