Annotator: Nicer flow for log diagram title
This commit is contained in:
parent
f8945549b0
commit
06a881525f
2 changed files with 4 additions and 0 deletions
|
@ -842,6 +842,7 @@ class Annotator extends EventTarget {
|
||||||
let titleEl = document.createElement('div');
|
let titleEl = document.createElement('div');
|
||||||
titleEl.classList.add('drawing-title');
|
titleEl.classList.add('drawing-title');
|
||||||
titleEl.innerText = this.title ?? "[add title]"
|
titleEl.innerText = this.title ?? "[add title]"
|
||||||
|
titleEl.title = this.title ?? "[click to add title for this diagram]"
|
||||||
titleEl.addEventListener('click', (ev) => {
|
titleEl.addEventListener('click', (ev) => {
|
||||||
const title = prompt("Change the title for the drawing", this.title ?? "");
|
const title = prompt("Change the title for the drawing", this.title ?? "");
|
||||||
if(title === null) return; //cancel
|
if(title === null) return; //cancel
|
||||||
|
|
|
@ -265,6 +265,9 @@ path.before_in {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
white-space: nowrap;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
.metadataconfig .audioconfig{
|
.metadataconfig .audioconfig{
|
||||||
|
|
Loading…
Reference in a new issue