Annotator: Nicer flow for log diagram title

This commit is contained in:
Ruben van de Ven 2022-06-10 13:53:27 +02:00
parent f8945549b0
commit 06a881525f
2 changed files with 4 additions and 0 deletions

View file

@ -842,6 +842,7 @@ class Annotator extends EventTarget {
let titleEl = document.createElement('div');
titleEl.classList.add('drawing-title');
titleEl.innerText = this.title ?? "[add title]"
titleEl.title = this.title ?? "[click to add title for this diagram]"
titleEl.addEventListener('click', (ev) => {
const title = prompt("Change the title for the drawing", this.title ?? "");
if(title === null) return; //cancel

View file

@ -265,6 +265,9 @@ path.before_in {
font-weight: bold;
padding: 10px;
cursor: pointer;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
}
.metadataconfig .audioconfig{