nenadpnc / cl-editor

Lightweight text editor built with svelte, typescript
https://nenadpnc.github.io/cl-editor/
MIT License
293 stars 23 forks source link

Reactive Colours and Modal tweaks #48

Closed aam-git closed 2 years ago

aam-git commented 2 years ago

Updates in this pull request

image

aam-git commented 2 years ago

This reads better imo. EDIT: Wouldn't need block too. @aam-git

  $: btns = colors
      .map((color) => ({ color }))
      .concat([{ text: '#', modal: true }]);

Nice, just updated the pull request to add this :)

EDIT: updated to remove blocks

aam-git commented 2 years ago

lgtm. @nenadpnc Just noticed spaces are not consistent in the codebase. There is a mix of tabs, 2 spaces, and 4 spaces. After this is approved and merged, I can submit a PR to convert all to the js standard of 2 spaces.

EDIT: @aam-git If you change the indentation back to 2 spaces, it will de-noise the commit histories.

Done... Odd, not sure why vscode did that, I don't normally let it format svelte files.