Notes: Add padding to table cells

Created on 27 Aug 2019  ·  3Comments  ·  Source: nextcloud/notes

Is your feature request related to a problem? Please describe.
In reference to #115 tables are supported now. When I add them to a note and take a look at the preview, there is no padding inside the cells. This results in a difficult readability as you can not tell where the content of a cell starts and where it ends.

Input:

| First head   | Second head  | Third head   |
|--------------|--------------|--------------|
| ABC123456789 | DEF123456789 | GHI123456789 |
| JKL123456789 | MNO123456789 | PQR123456789 |
| STU123456789 | VWX123456789 | YZ123456789  |

Output:
1566896755-001

Describe the solution you'd like
Padding must be applied to the cells.

Describe alternatives you've considered
In addition to that it would be nice to apply font-weight: bold to thead to differ them from the tbody. Also the tables width should be set to 100% to make use of the whole space.

Additional context
See above.

design enhancement Markdown-it

Most helpful comment

I'm fine with that, see #362

All 3 comments

Yes, we could adjust the style for the preview mode. How about that?

Screenshot

  • [x] th is bold
  • [x] th and td has 1em padding
  • [ ] table width is still auto, since 100% doesn't make sense in most cases

Looks much better. What about 1.5em? Just to be sure.

I'm fine with that, see #362

Was this page helpful?
0 / 5 - 0 ratings

Related issues

trymeouteh picture trymeouteh  ·  6Comments

kees-closed picture kees-closed  ·  7Comments

bestouff picture bestouff  ·  7Comments

Beta0815 picture Beta0815  ·  6Comments

svein83 picture svein83  ·  4Comments