Skip to content

Commit

Permalink
πŸ’„ Fix issue#69 Single line comments are hidden
Browse files Browse the repository at this point in the history
Fixes an issue where non-Todist single line comments (Java, Ruby, HTML...)
were hidden.
See HeroBlackInk#69 (comment)
  • Loading branch information
ebouchut committed Nov 17, 2023
1 parent 677e1b1 commit 6a3552f
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions styles.css
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@

.cm-line:not(:hover):not(.cm-active) span.cm-comment {
display: none;
/*
* Hide the todoist_id start and end comment delimiters (%%)
* except when we hover over the line or edit the task
*/
.cm-line:not(:hover):not(.cm-active) > .cm-comment.cm-comment-start:has(~ .dataview.inline-field > .dataview.inline-field-key[data-dv-key="todoist_id"]),
.cm-line:not(:hover):not(.cm-active) > .cm-comment.cm-comment-start:has(~ .dataview.inline-field > .dataview.inline-field-key[data-dv-key="todoist_id"]) ~ .cm-comment.cm-comment-end
{
display: none;
}







/*
.cm-line span.cm-comment {
display: none;
Expand Down

0 comments on commit 6a3552f

Please sign in to comment.