show note name if tags dont exist for a task
This commit is contained in:
@@ -321,6 +321,12 @@ class OrgTodoListView extends ItemView {
|
||||
for (const tag of t.tags) {
|
||||
row.createSpan({ text: "#" + tag, cls: "org-todo-rowtag" });
|
||||
}
|
||||
|
||||
if (t.tags.length === 0) {
|
||||
const note = row.createSpan({ text: t.file.basename, cls: "org-todo-note" });
|
||||
note.addEventListener("click", () => this.openTask(t));
|
||||
}
|
||||
|
||||
if (t.dueDate) row.createSpan({ text: "📅 " + t.dueDate, cls: "org-todo-date" });
|
||||
|
||||
label.addEventListener("click", () => this.openTask(t));
|
||||
|
||||
+10
@@ -30,6 +30,16 @@
|
||||
font-weight: bold;
|
||||
opacity: 0.8;
|
||||
}
|
||||
.org-todo-note {
|
||||
font-size: 0.78em;
|
||||
font-style: italic;
|
||||
color: var(--text-muted);
|
||||
cursor: pointer;
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
max-width: 40%; /* don't let a long filename blow out the row */
|
||||
}
|
||||
.org-todo-pill-x:hover {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user