Open max-nextcloud opened 6 days ago
color-primary-element-light
at 0.5 opacity
border-bottom: 2px solid var(--color-primary-element)
also with 0.5 opacityopacity: 1
opacity: 1
and the comment opensmax-width: 300px
New comment element:
Mockups TBD
TBD:
What do you think? :)
Summary
Initial sketch with available comments indicated in text and a button to create a new comment on the current active section.
Allow comments on block elements (paragraphs, headings, quotes, ...):
Motivation
Comments are useful in many situation. They allow adding information that directly relates to parts of the document without adding it directly to the document content.
Comments can be particularly helpful when drafting documents and during a review process.
Comments on block elements attach the comment to the relevant section on the document while avoiding the complexity of in line comments such as overlapping comment ranges.
Specification
Comments can be added to all block elements:
Alternatives
Inline comments
This draft mainly came out of the discussion of in line comments in #185. In line comments allow commenting on a precise range of text, which is hard to represent in markdown.
Footnotes
While footnotes could also be used to represent comments, they serve a different purpose.
2142 discusses footnotes.
User Interface Elements
Implementation
toMarkdown
function to serialize them.Out of scope for now (but maybe future)