text icon indicating copy to clipboard operation
text copied to clipboard

Adding new table rows is not possible if only the column header exists

Open UteHaus opened this issue 1 year ago • 1 comments

Describe the bug After I delete all existing rows on the table and only the column header exist, is non possibility to add a new row. You can only delete the table on the table navbar or create new columns.

To Reproduce Steps to reproduce the behavior:

  1. create a table
  2. delete all rows (without the column header)
  3. add new row --> no way exist

Expected behavior When non row exist, a possibility to add a new row

Screenshots Table navbar

Image

Table column menu bar

Image

Server details:

  • Nextcloud version: [30.0.4]
  • PHP Version: [8.3]
  • Database: [postgres 14]
  • text version: [4.1.0]

Client details:

  • OS: [Ubuntu]
  • Browser: [Firefox]
  • Browser version: [133]
  • Device: [ desktop]

UteHaus avatar Jan 12 '25 08:01 UteHaus

@UteHaus thanks for the report. Indeed there's no UI option to add a row after removing all body rows. You have some options left though:

  • You can undo removing the last row using either the undo option or Ctrl-Z
  • In a table header cell with content, typing Enter will add a new body row below

I'm not sure it's worth the effort to add an extra menu in the heading row for adding a row below just for this corner case to be honest.

mejo- avatar Nov 29 '25 11:11 mejo-