Open AI-Mozi opened 7 months ago
@postmodern take a look at it please and let me know if you like it or what would you change. Code is not fully completed, I'll have to "refactor" it a bit later.
Noticed that noteId
is used a lot in multiple id
elements. I wonder if we could use data
attributes for that? Or have one query to find the outer most div
with the noteId
, and then sub-select the specific elements within the div based on class
or element type.
Oooh the JavaScript asset is for the icons. For SVG icons just download the desired icon files and put them into public/images/
. Previously I would just do a Google Images search for "SVG edit icon" and filter by Creative Commons. I recently discovered iconduck.com which is a Free and Open Source collection of icons, and offers SVG downloads. We should probably just use individual icons from them.
Doing a visual inspection, I think the grey text on black background for the comment header is hard to see in bright-mode. I'd use white text on a black background, or at least a brighter shade of grey.
It also appears that the Delete doesn't remove the comment div
immediately. Edit works perfectly thought.
58